1
0
mirror of https://bitbucket.org/shim_/docker-rtm.git synced 2018-10-04 01:52:08 +02:00
This commit is contained in:
shim_ 2016-06-22 22:22:43 +02:00
parent 4b5b0baafd
commit ab9d016fc3

View File

@ -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
}
if [[ -d "$BINARYDIR" && -f $BINARY ]]; then
apply_restrictions
if [[ -d "$BINARYDIR" && -f $BINARY ]]; then
report_loop
else
if [ -f "$INSTALLER" ]; then
@ -51,6 +53,5 @@ else
else
fetch_installer
fi
apply_restrictions
report_loop
fi