Skip to content

Commit

Permalink
SC2086 - Double quote to prevent globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Oct 16, 2024
1 parent 91e0247 commit 2b6865f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose/start-bbm-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cd /srv/buildbot/master/master-web || err "cd /srv/buildbot/master/master-web"
[[ -f master-private.cfg ]] || ln -s ../master-private.cfg
VAR_DB_HOST=$(grep db_host master-private.cfg | awk '{print $3}' | sed s/\"//g)
echo "Waiting for MariaDB to start..."
while ! nc -z $VAR_DB_HOST 3306; do
while ! nc -z "$VAR_DB_HOST" 3306; do
sleep 0.1
done
echo "MariaDB started"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cd "/srv/buildbot/master/$1" || err "cd /srv/buildbot/master/$1"

VAR_DB_HOST=$(grep db_host master-private.cfg | awk '{print $3}' | sed s/\"//g)
echo "Waiting for MariaDB to start..."
while ! nc -z $VAR_DB_HOST 3306; do
while ! nc -z "$VAR_DB_HOST" 3306; do
sleep 0.1
done
echo "MariaDB started"
Expand Down

0 comments on commit 2b6865f

Please sign in to comment.