about summary refs log tree commit diff stats
path: root/sys/svcs/xdg/scripts/ranger-wrapper.sh
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
committerSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
commitf2bdeaed0bcf97a880fe36cfc8a050d1643120b8 (patch)
treeba4fe9c3ddf076529701c0e776ffef2104ac23d5 /sys/svcs/xdg/scripts/ranger-wrapper.sh
parentrefactor(treewide): Add a `.sh` extension to shell scripts (diff)
downloadnixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.tar.gz
nixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.zip
refactor(treewide): Reformat all files with treefmt
This includes getting all shellscripts to pass shellcheck. To accomplish
this, some old scripts were removed
Diffstat (limited to '')
-rwxr-xr-xsys/svcs/xdg/scripts/ranger-wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/svcs/xdg/scripts/ranger-wrapper.sh b/sys/svcs/xdg/scripts/ranger-wrapper.sh
index a98cff32..46d8e045 100755
--- a/sys/svcs/xdg/scripts/ranger-wrapper.sh
+++ b/sys/svcs/xdg/scripts/ranger-wrapper.sh
@@ -50,7 +50,7 @@ Notes:
    that, for example.
 2) If you quit ranger without opening a file, this file
    will be removed and the save operation aborted.
-' > "$path"
+' >"$path"
 elif [ "$directory" = "1" ]; then
     set -- --choosedir="$out" --show-only-dirs --cmd="echo Select directory (quit in dir to select it)"
 elif [ "$multiple" = "1" ]; then
@@ -59,7 +59,7 @@ else
     set -- --choosefile="$out" --cmd="echo Select file (open file to select it)"
 fi
 
-"$termcmd" -- $cmd "$@"
+"$termcmd" -- "$cmd" "$@"
 if [ "$save" = "1" ] && [ ! -s "$out" ]; then
     rm "$path"
 fi