From afb5cbbe4ab09651b100ce5c409a5ecd5c992939 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 6 Dec 2022 14:59:15 +0100
Subject: Update wrapper script
---
.local/share/wrapper.sh | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
(limited to '.local/share')
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() { :; }
--
cgit v1.1