programs: sane-sandboxed: make the profile handle arguments with spaces
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user