diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-12-06 14:59:15 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-12-06 14:59:15 +0100 |
commit | afb5cbbe4ab09651b100ce5c409a5ecd5c992939 (patch) | |
tree | 7e6f15908322751064aa6534401921ff7661e51b /.local/share/wrapper.sh | |
parent | 4c9c16944b4dcb292198c02cb0f4df61ebd2f0f9 (diff) |
Update wrapper script
Diffstat (limited to '.local/share/wrapper.sh')
-rwxr-xr-x | .local/share/wrapper.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/.local/share/wrapper.sh b/.local/share/wrapper.sh index 336d6e7..3c64620 100755 --- a/.local/share/wrapper.sh +++ b/.local/share/wrapper.sh @@ -68,7 +68,7 @@ main() # Add a firejail wrapper if desired if [ -n "$FIREJAIL_PROFILE" ] then - WRAPPER_CMD="firejail --profile=\"$FIREJAIL_PROFILE\" -- $WRAPPER_CMD" + WRAPPER_CMD="firejail --profile=""$FIREJAIL_PROFILE"" -- $WRAPPER_CMD" fi # Optionally add WRAPPER_OPTS, so theres no double space in @@ -80,7 +80,8 @@ main() # Run all the things we want to run wrap_before - wrap_run "$WRAPPER_CMD" "$@" + wrap_log "> $WRAPPER_CMD $*" + $WRAPPER_CMD "$@" WRAPPER_EXITCODE=$? wrap_after @@ -98,11 +99,6 @@ wrap_log() { printf "[%s] %s\n" "$(date -u +%FT%TZ)" "$*" >&2 } -wrap_run() { - wrap_log "> $*" - eval "$@" -} - wrap_before() { :; } wrap_after() { :; } |