yatfa 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/yatfa-runner +8 -1
- package/package.json +1 -1
package/bin/yatfa-runner
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# yatfa - Agent runner wrapper
|
|
3
3
|
# Sets process name to yatfa-<agent-type> so ps/top/Activity Monitor shows it clearly.
|
|
4
|
-
|
|
4
|
+
# Resolve through npm symlinks (node_modules/.bin/yatfa -> ../yatfa/bin/yatfa-runner)
|
|
5
|
+
SELF="${BASH_SOURCE[0]}"
|
|
6
|
+
while [ -L "$SELF" ]; do
|
|
7
|
+
DIR="$(cd -P "$(dirname "$SELF")" && pwd)"
|
|
8
|
+
SELF="$(readlink "$SELF")"
|
|
9
|
+
[[ "$SELF" != /* ]] && SELF="$DIR/$SELF"
|
|
10
|
+
done
|
|
11
|
+
DIR="$(cd -P "$(dirname "$SELF")" && pwd)"
|
|
5
12
|
exec -a "yatfa-${1:-yatfa}" ruby "$DIR/run-yatfa-agent.rb" "$@"
|