manage: install & uninstall: mark as executable first

pull/882/head
Botspot 3 years ago
parent 1e0fd7a01c
commit eb1bbf55e6

@ -167,6 +167,8 @@ elif [ "$1" == 'install' ];then
#for piping to tee, the install script's exit code is preserved by enabling the pipefail bash builtin
set -o pipefail
chmod u+x "$installscript"
echo -e "\e[96mInstalling $app with $scriptname script\e[39m" | tee -a "$logfile"
cd $HOME
echo 'corrupted' > "${DIRECTORY}/data/status/${app}"
@ -226,6 +228,8 @@ elif [ "$1" == 'uninstall' ];then
#for piping to tee, the install script's exit code is preserved by enabling the pipefail bash builtin
set -o pipefail
chmod u+x "${DIRECTORY}/apps/${app}/uninstall"
echo -e "\e[96mUninstalling $app\e[39m" | tee -a "$logfile"
cd $HOME
echo 'corrupted' > "${DIRECTORY}/data/status/${app}"

Loading…
Cancel
Save