forge
Explore
Log in

Don't you dare go Hollow

niri-session: fix shellcheck warnings

Browse files at this commit

606284464d4a99bb35710fee68192bc71085ee7cLennard HofmannParent: d89a3eb
ANSI-C strings like $'' are Bash-only.
resources/niri-sessionmodified+3 -3
@@ -77,15 +77,15 @@ elif hash dinitctl >/dev/null 2>&1; then
77 fi77 fi
78 78
79 # Create the directory for the logfile, if doesn't exist79 # Create the directory for the logfile, if doesn't exist
80- mkdir --parents $HOME/.local/share/niri80+ mkdir --parents "$HOME/.local/share/niri"
81 # Start niri81 # Start niri
82 dinitctl --quiet --user start niri.target 2>&182 dinitctl --quiet --user start niri.target 2>&1
83 83
84 # Wait for termination84 # Wait for termination
85- dinit-monitor --user --initial -c $'sh -c " 85+ dinit-monitor --user --initial -c 'sh -c "
86 if [ "%s" = "stopped" ] || [ "%s" = "failed" ]; then86 if [ "%s" = "stopped" ] || [ "%s" = "failed" ]; then
87 ppid=$(ps -o ppid= -p $$)87 ppid=$(ps -o ppid= -p $$)
88- kill $ppid88+ kill "$ppid"
89 fi"' niri >/dev/null 2>&189 fi"' niri >/dev/null 2>&1
90 90
91 # Unset environment that we've set.91 # Unset environment that we've set.