Skip to content

Commit

Permalink
Fix grouping during quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Sep 11, 2024
1 parent b75477f commit 30c1aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system_files/shared/usr/libexec/sb-key-notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ if [ $? -ne 1 ]; then
USER_ID="$(/usr/bin/loginctl list-users --output=json | jq -r '.[] | .user')"
XDG_DIR="$(/usr/bin/loginctl show-user $USER_ID | grep RuntimePath | cut -c 13-)"

Check warning on line 15 in system_files/shared/usr/libexec/sb-key-notify.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

system_files/shared/usr/libexec/sb-key-notify.sh#L15

Double quote to prevent globbing and word splitting.
/usr/bin/sudo -u \
"$USER_ID DISPLAY=:0" \
"$USER_ID" \
"DISPLAY=:0" \
DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_DIR/bus \

Check warning on line 19 in system_files/shared/usr/libexec/sb-key-notify.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

system_files/shared/usr/libexec/sb-key-notify.sh#L19

Double quote to prevent globbing and word splitting.
notify-send "WARNING" \
"$(echo "$WARNING_MSG" | tr -d '*')" \
Expand Down

0 comments on commit 30c1aac

Please sign in to comment.