diff --git a/crypt/crypt b/crypt/crypt index cd0c0bd..cfc4d45 100755 --- a/crypt/crypt +++ b/crypt/crypt @@ -45,7 +45,7 @@ update() cd $repositoryName || { echo 'Update Failed' ; exit 1 ;} git checkout "v$latestVersion" 2> /dev/null || git checkout "$latestVersion" 2> /dev/null || echo "Couldn't git checkout to stable release, updating to latest commit." chmod a+x install.sh #this might be necessary in your case but wasnt in mine. - ./$nameOfInstallFile "update" || { echo "Permissions Error: try running the update as sudo"; exit 1; } + ./$nameOfInstallFile "update" || exit 1 cd .. rm -r -f $repositoryName || { echo "Permissions Error: update succesfull but cannot delete temp files located at ~/$repositoryName delete this directory with sudo"; exit 1; } else diff --git a/currency/currency b/currency/currency index da4983f..4386009 100755 --- a/currency/currency +++ b/currency/currency @@ -4,7 +4,6 @@ base="" exchangeTo="" currentVersion="1.2.1" - configuredClient="" ## This function determines which http get tool the system has installed and returns an error if there isnt one @@ -181,7 +180,7 @@ update() cd $repositoryName || { echo 'Update Failed' ; exit 1 ;} git checkout "v$latestVersion" 2> /dev/null || git checkout "$latestVersion" 2> /dev/null || echo "Couldn't git checkout to stable release, updating to latest commit." chmod a+x install.sh #this might be necessary in your case but wasnt in mine. - ./$nameOfInstallFile "update" || { echo "Permissions Error: try running the update as sudo"; exit 1; } + ./$nameOfInstallFile "update" || exit 1 cd .. rm -r -f $repositoryName || { echo "Permissions Error: update succesfull but cannot delete temp files located at ~/$repositoryName delete this directory with sudo"; exit 1; } else diff --git a/movies/movies b/movies/movies index d8169f0..cf26302 100755 --- a/movies/movies +++ b/movies/movies @@ -109,7 +109,7 @@ update() cd $repositoryName || { echo 'Update Failed' ; exit 1 ;} git checkout "v$latestVersion" 2> /dev/null || git checkout "$latestVersion" 2> /dev/null || echo "Couldn't git checkout to stable release, updating to latest commit." chmod a+x install.sh #this might be necessary in your case but wasnt in mine. - ./$nameOfInstallFile "update" || { echo "Permissions Error: try running the update as sudo"; exit 1; } + ./$nameOfInstallFile "update" || exit 1 cd .. rm -r -f $repositoryName || { echo "Permissions Error: update succesfull but cannot delete temp files located at ~/$repositoryName delete this directory with sudo"; exit 1; } else