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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user