From ab9d016fc3c0382922442144fe3a56409df2c5ee Mon Sep 17 00:00:00 2001 From: shim_ Date: Wed, 22 Jun 2016 22:22:43 +0200 Subject: [PATCH] simplify --- init.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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