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:
parent
45923847e7
commit
9136101731
5
init.sh
5
init.sh
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BINARY=/usr/local/rtm/bin/rtm
|
BINARYDIR=/usr/local/rtm
|
||||||
|
BINARY=$BINARYDIR/bin/rtm
|
||||||
INSTALLER="/cache/install-$RTM_VERSION.sh"
|
INSTALLER="/cache/install-$RTM_VERSION.sh"
|
||||||
|
|
||||||
function report_loop {
|
function report_loop {
|
||||||
@ -22,7 +23,7 @@ function fetch_installer {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f "$BINARY" ]; then
|
if [ -d "$BINARYDIR" && -f $BINARY ]; then
|
||||||
report_loop
|
report_loop
|
||||||
else
|
else
|
||||||
if [ -f "$INSTALLER" ]; then
|
if [ -f "$INSTALLER" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user