You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Misc/layoutroot/run-helper.sh.template
+9-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,15 @@ safe_sleep() {
26
26
fi
27
27
}
28
28
29
-
bin/Runner.Listener run $*
29
+
SOURCE="${BASH_SOURCE[0]}"
30
+
while [ -h"$SOURCE" ];do# resolve $SOURCE until the file is no longer a symlink
31
+
DIR="$(cd -P "$( dirname "$SOURCE")"&&pwd)"
32
+
SOURCE="$(readlink "$SOURCE")"
33
+
[[ $SOURCE!= /* ]] && SOURCE="$DIR/$SOURCE"# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
34
+
done
35
+
DIR="$(cd -P "$( dirname "$SOURCE")"&&pwd)"
36
+
"$DIR"/bin/Runner.Listener run $*
37
+
30
38
returnCode=$?
31
39
if [[ $returnCode== 0 ]];then
32
40
echo"Runner listener exit with 0 return code, stop the service, no retry needed."
Copy file name to clipboardexpand all lines: src/Misc/layoutroot/run.sh
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
9
9
[[ $SOURCE!= /* ]] && SOURCE="$DIR/$SOURCE"# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
0 commit comments