refactor(script): Use sh not bash

This commit is contained in:
Zaiming Shi 2020-12-07 21:21:17 +01:00
parent 8fe889dd14
commit f2aede75cb
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/sh
set -euo pipefail #set -euo pipefail
set -eu
VERSION="$1" VERSION="$1"
@ -17,7 +18,7 @@ version() {
head -n 2 ./rebar3 | tail -n 1 | tr ' ' '\n' | grep -E '^.+-emqx-.+' head -n 2 ./rebar3 | tail -n 1 | tr ' ' '\n' | grep -E '^.+-emqx-.+'
} }
if [ -f 'rebar3' ] && [ "$(version)" == "$VERSION" ]; then if [ -f 'rebar3' ] && [ "$(version)" = "$VERSION" ]; then
exit 0 exit 0
fi fi