vifm: Fix vifmrun script argument parsing

Fixed invocations of vifm only passing through the first commandline
option, now passes through everything correctly.
Also fixed silencing of the stderr, stdout redirection.
This commit is contained in:
Marty Oehme 2021-04-21 11:09:33 +02:00
parent c9c0490cbf
commit 4a203cf657
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
2 changed files with 3 additions and 3 deletions

View File

@ -5,4 +5,4 @@
# archived when downloaded.
# shellcheck disable=SC2029
ssh dietpi ./vidl "$@"
ssh dietpi '$HOME/bin/vidl' "$@"

View File

@ -9,7 +9,7 @@ pkill -P $$ 2>/dev/null
rm "$FIFO_UEBERZUG" 2>/dev/null
mkfifo "$FIFO_UEBERZUG" >/dev/null
trap cleanup EXIT 2>/dev/null
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash 2>&1 >/dev/null &
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash >/dev/null 2>&1 &
vifm $1
vifm "$@"
cleanup