diff --git a/init.sh b/init.sh index 9c81232..f42e980 100755 --- a/init.sh +++ b/init.sh @@ -15,6 +15,7 @@ function disable_command { rm -f $1 echo -e '#!/bin/sh\n\n/bin/true' > $1 chmod +x $1 + echo "Disabled $1" } function apply_restrictions { @@ -41,8 +42,9 @@ function fetch_installer { fi } +apply_restrictions + if [[ -d "$BINARYDIR" && -f $BINARY ]]; then - apply_restrictions report_loop else if [ -f "$INSTALLER" ]; then @@ -51,6 +53,5 @@ else else fetch_installer fi - apply_restrictions report_loop fi