programs: sane-sandboxed: make the profile handle arguments with spaces

This commit is contained in:
2024-01-23 12:47:25 +00:00
parent 40cc8f5d1c
commit 983bf93d8f

View File

@@ -18,8 +18,10 @@ debug() {
} }
loadProfileByPath() { loadProfileByPath() {
_profArgs="$(cat $1)" # profile format is simply a list of arguments one would pass to this sane-sandboxed script itself,
parseArgs $_profArgs # with one argument per line
readarray -t _profArgs < <(cat "$1")
parseArgs "${_profArgs[@]}"
} }
tryLoadProfileByName() { tryLoadProfileByName() {