Skip to content

Commit

Permalink
Update common.sh
Browse files Browse the repository at this point in the history
quoting needed if command has spaces, e.g. snap run warzone2100
  • Loading branch information
johan-boule authored Jul 7, 2024
1 parent 6b4e330 commit b49a4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/hosting/linux_scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function check {
echo "[ERROR] netstat or ss is required to check for available ports"
exit 1
fi
if [ ! $(command -v $wz2100cmd) ]; then
if [ ! "$(command -v $wz2100cmd)" ]; then
echo "[ERROR] Cannot execute \"$wz2100cmd\"."
exit 1
fi
Expand Down

0 comments on commit b49a4dd

Please sign in to comment.