mirror of
https://bitbucket.org/shim_/docker-rtm.git
synced 2018-10-04 01:52:08 +02:00
simplify
This commit is contained in:
parent
4b5b0baafd
commit
ab9d016fc3
5
init.sh
5
init.sh
@ -15,6 +15,7 @@ function disable_command {
|
|||||||
rm -f $1
|
rm -f $1
|
||||||
echo -e '#!/bin/sh\n\n/bin/true' > $1
|
echo -e '#!/bin/sh\n\n/bin/true' > $1
|
||||||
chmod +x $1
|
chmod +x $1
|
||||||
|
echo "Disabled $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
function apply_restrictions {
|
function apply_restrictions {
|
||||||
@ -41,8 +42,9 @@ function fetch_installer {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -d "$BINARYDIR" && -f $BINARY ]]; then
|
|
||||||
apply_restrictions
|
apply_restrictions
|
||||||
|
|
||||||
|
if [[ -d "$BINARYDIR" && -f $BINARY ]]; then
|
||||||
report_loop
|
report_loop
|
||||||
else
|
else
|
||||||
if [ -f "$INSTALLER" ]; then
|
if [ -f "$INSTALLER" ]; then
|
||||||
@ -51,6 +53,5 @@ else
|
|||||||
else
|
else
|
||||||
fetch_installer
|
fetch_installer
|
||||||
fi
|
fi
|
||||||
apply_restrictions
|
|
||||||
report_loop
|
report_loop
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user