diff options
author | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-11-22 20:32:34 -0800 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-11-22 20:32:34 -0800 |
commit | eb517ec3a01956e0a09a775bf8d21ec22512fb04 (patch) | |
tree | 7793f9f12678dcff4cd19ae6194f95620c152df4 /scripts | |
parent | 0e82c6d5a6beefa56eb809edb446a995bdbde106 (diff) | |
download | rvi_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-x | scripts/rvi.sh | 5 |
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 |