Skip to content

Commit

Permalink
gluon-core: exit 1 in /lib/gluon/domain_changed.sh if domain is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoer committed Oct 18, 2017
1 parent 19f7608 commit 09b5bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/gluon-core/files/lib/gluon/domain_changed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

domain=$(uci get gluon.@system[0].domain)

ls /lib/gluon/domains/${domain}.json > /dev/null
[ -f /lib/gluon/domains/${domain}.json ] || (echo "file not found: /lib/gluon/domains/${domain}.json" >&2; exit 1) || exit 1

for s in /lib/gluon/upgrade/*; do
echo -n ${s}:
Expand Down

0 comments on commit 09b5bdd

Please sign in to comment.