From: Silvio Rhatto Date: Fri, 30 Dec 2022 20:19:31 +0000 (-0300) Subject: Fix: spotx: error handling X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b585f111e0a9230aec85388958724065391c3133;p=trashman.git Fix: spotx: error handling --- 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