Skip to content

Commit

Permalink
Fix minor shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
selurvedu authored and Zash committed Jan 29, 2021
1 parent 0555dc1 commit d627c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
set -e

data_dir_owner="$(stat -c %u "/var/lib/prosody/")"
Expand All @@ -14,7 +14,7 @@ if [[ "$1" != "prosody" ]]; then
exit 0;
fi

if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
if [[ "$LOCAL" && "$PASSWORD" && "$DOMAIN" ]]; then
prosodyctl register "$LOCAL" "$DOMAIN" "$PASSWORD"
fi

Expand Down

0 comments on commit d627c29

Please sign in to comment.