Skip to content

Commit

Permalink
fix Double quote to prevent globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiangnan committed Apr 26, 2024
1 parent f2b249a commit 6aab1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/sbin/start-zks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ do
# echo "start zookeeper in $dir with endpoint $host:$port "

if [[ -f $dir/conf/zoo.cfg ]]; then
echo $dir"conf/zoo.cfg exists, using as default configuration"
echo "$dir/conf/zoo.cfg exists, using as default configuration"
cmd="cd $dir && bin/zkServer.sh start $dir/conf/zoo.cfg"
else
echo $dir"conf/zoo.cfg not exist, installation failed!"
echo "$dir/conf/zoo.cfg not exist, installation failed!"
exit 1
fi
# special for java
Expand Down

0 comments on commit 6aab1a1

Please sign in to comment.