Skip to content

Commit

Permalink
Added quotes to prevent word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Feb 21, 2024
1 parent ab9632b commit 45edccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/player_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ while true; do
new_player_steamid=$(get_steamid "${new_player}")
# If a new player then a change
if [ "$new_player_steamid" = "$player_steamid" ]; then
player_name=$( get_playername ${player} )
player_name=$( get_playername "${player}" )
LogInfo "${player_name} has joined"
broadcast_command "${player_name} has joined"
continue 2
Expand All @@ -48,7 +48,7 @@ while true; do
old_player_steamid=$(get_steamid "${old_player}")
# If an old player then no change
if [ "$old_player_steamid" = "$player_steamid" ]; then
player_name=$( get_playername ${player} )
player_name=$( get_playername "${player}" )
LogInfo "${player_name} has left"
broadcast_command "${player_name} has left"
continue 2
Expand Down

0 comments on commit 45edccc

Please sign in to comment.