1
0
mirror of https://bitbucket.org/shim_/docker-rtm.git synced 2018-10-04 01:52:08 +02:00

chack directory first

This commit is contained in:
shim_ 2016-06-13 16:13:41 +02:00
parent 45923847e7
commit 9136101731

View File

@ -1,6 +1,7 @@
#!/bin/bash
BINARY=/usr/local/rtm/bin/rtm
BINARYDIR=/usr/local/rtm
BINARY=$BINARYDIR/bin/rtm
INSTALLER="/cache/install-$RTM_VERSION.sh"
function report_loop {
@ -22,7 +23,7 @@ function fetch_installer {
fi
}
if [ -f "$BINARY" ]; then
if [ -d "$BINARYDIR" && -f $BINARY ]; then
report_loop
else
if [ -f "$INSTALLER" ]; then