summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-11-22 20:32:34 -0800
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-11-22 20:32:34 -0800
commiteb517ec3a01956e0a09a775bf8d21ec22512fb04 (patch)
tree7793f9f12678dcff4cd19ae6194f95620c152df4 /scripts
parent0e82c6d5a6beefa56eb809edb446a995bdbde106 (diff)
downloadrvi_core-eb517ec3a01956e0a09a775bf8d21ec22512fb04.tar.gz
Since rvi.sh now changes dir to the directory where rvi.sh itself resides, we need to ensure that all arguments to the erlang system are absolute paths.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rvi.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/rvi.sh b/scripts/rvi.sh
index eee8b5b..de8772f 100755
--- a/scripts/rvi.sh
+++ b/scripts/rvi.sh
@@ -157,6 +157,11 @@ fi
TMP_DIR=/tmp/rvi/$(basename ${CONFIG_FILE} .config)
LOG_DIR=${LOG_DIR:=${TMP_DIR}/rvi/log}
+if [ $(echo ${LOG_DIR} | cut -c 1,1) != "/" ]
+then
+ LOG_DIR=${PWD}/${LOG_DIR}
+fi
+
LAUNCH="${ERL} -boot ${CONFIG_DIR}/rvi/start -sname ${SNAME} -config ${CONFIG_DIR}/rvi/sys -setcookie ${COOKIE}"
case "${CMD}" in