fix(persistence): invoke the installed script path literally

This commit is contained in:
2026-10-30 10:57:04 -03:00
parent dbd7ad3476
commit 7a7f8f464a
6 changed files with 67 additions and 16 deletions
+7
View File
@@ -0,0 +1,7 @@
_launchd_script_path() {
local script_path="${SCRIPT_PATH:-}"
if [ -z "$script_path" ]; then
script_path="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")"
fi
printf '%s' "$script_path" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g'
}