niri-session: fix shellcheck warnings
Browse files at this commit606284464d4a99bb35710fee68192bc71085ee7cParent: d89a3eb1 changed file +3 -3
- resources/niri-session +3 -3
resources/niri-sessionmodified+3 -3
| @@ -77,15 +77,15 @@ elif hash dinitctl >/dev/null 2>&1; then | |||
| 77 | fi | 77 | fi |
| 78 | 78 | ||
| 79 | # Create the directory for the logfile, if doesn't exist | 79 | # Create the directory for the logfile, if doesn't exist |
| 80 | - mkdir --parents $HOME/.local/share/niri | 80 | + mkdir --parents "$HOME/.local/share/niri" |
| 81 | # Start niri | 81 | # Start niri |
| 82 | dinitctl --quiet --user start niri.target 2>&1 | 82 | dinitctl --quiet --user start niri.target 2>&1 |
| 83 | 83 | ||
| 84 | # Wait for termination | 84 | # 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" ]; then | 86 | if [ "%s" = "stopped" ] || [ "%s" = "failed" ]; then |
| 87 | ppid=$(ps -o ppid= -p $$) | 87 | ppid=$(ps -o ppid= -p $$) |
| 88 | - kill $ppid | 88 | + kill "$ppid" |
| 89 | fi"' niri >/dev/null 2>&1 | 89 | fi"' niri >/dev/null 2>&1 |
| 90 | 90 | ||
| 91 | # Unset environment that we've set. | 91 | # Unset environment that we've set. |