Skip to content

Commit 7147ac7

Browse files
committed
fix: use POSIX supported test a = b rather than a == b.
Courtesy of https://www.shellcheck.net/
1 parent e737d1e commit 7147ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Docker/roundup_start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ parameters.\n" "$directory"
179179
# we have a valid config.ini so init database if not done
180180
# if we get errors, the db directory should be missing
181181
# and we print an error.
182-
if [ $do_exit == 0 -a ! -e "$directory/db" ]; then
182+
if [ $do_exit = 0 -a ! -e "$directory/db" ]; then
183183
printf "Initializing tracker %s\n" "$tracker"
184184
if ! roundup-admin -i "$directory" init; then
185185
# something went wrong.
@@ -193,7 +193,7 @@ parameters.\n" "$directory"
193193
done # for "$@"
194194

195195
# if any config.ini needs editing don't start up.
196-
if [ $do_exit == 0 ]; then
196+
if [ $do_exit = 0 ]; then
197197
# make roundup-server process pid 1 with exec
198198
exec roundup-server -n 0.0.0.0 "$@"
199199
fi

0 commit comments

Comments
 (0)