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

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

View File

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