sh: Make use of bashisms in bash scripts

Both [[ ]] and (( )) bashisms are better than the alternative
in POSIX sh, since they are builtin and don't suffer from quoting
or number-of-args issues.

Signed-off-by: Manuel Mendez <mmendez@equinix.com>
This commit is contained in:
Manuel Mendez
2021-04-27 17:39:50 +00:00
parent b8d94f5278
commit 0fff3e6d7f
3 changed files with 22 additions and 22 deletions

View File

@ -34,7 +34,7 @@ setup_nat() (
main() (
export DEBIAN_FRONTEND=noninteractive
if [ ! -f ./.env ]; then
if ! [[ -f ./.env ]]; then
./generate-env.sh eth1 >.env
fi