aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-12-30 17:19:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-12-30 17:19:31 -0300
commitb585f111e0a9230aec85388958724065391c3133 (patch)
tree01862de1748f42de3e624d6d69d90da80a468e3c
parenta1f990751b9494d6e3db78c3a63dc646bde95acd (diff)
downloadtrashman-b585f111e0a9230aec85388958724065391c3133.tar.gz
trashman-b585f111e0a9230aec85388958724065391c3133.tar.bz2
Fix: spotx: error handling
-rwxr-xr-xshare/trashman/spotx/unix/linux/install6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/trashman/spotx/unix/linux/install b/share/trashman/spotx/unix/linux/install
index 2eacedf..d69acfe 100755
--- a/share/trashman/spotx/unix/linux/install
+++ b/share/trashman/spotx/unix/linux/install
@@ -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