]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: spotx: error handling
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Dec 2022 20:19:31 +0000 (17:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Dec 2022 20:19:31 +0000 (17:19 -0300)
share/trashman/spotx/unix/linux/install

index 2eacedf14e96c8ffc3e84a23f22ac623943ec661..d69acfed23cfb7faf184cbea1fba5cbac525d02e 100755 (executable)
@@ -12,14 +12,14 @@ trashman install spotify || exit 1
 
 # Download
 if [ ! -d "/usr/local/src/spotx" ]; then
-  git clone https://github.com/SpotX-CLI/SpotX-Linux /usr/local/src/spotx
+  git clone https://github.com/SpotX-CLI/SpotX-Linux /usr/local/src/spotx || exit 1
 fi
 
 # Use the latest version
 #git -C /usr/local/src/spotx pull
 
 # Checkout an specific version
-git -C /usr/local/src/spotx checkout $COMMIT
+git -C /usr/local/src/spotx checkout $COMMIT || exit 1
 
 # Install
-bash /usr/local/src/spotx/install.sh
+bash /usr/local/src/spotx/install.sh || exit 1