mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
build.sh: fix shellcheck suggestions
This commit is contained in:
parent
bf8c562575
commit
e01732ee46
1 changed files with 2 additions and 2 deletions
4
build.sh
4
build.sh
|
@ -4,7 +4,7 @@ set -e;
|
||||||
# current_branch="$(git rev-parse --abbrev-ref HEAD)";
|
# current_branch="$(git rev-parse --abbrev-ref HEAD)";
|
||||||
is_main="$(git branch --contains HEAD | awk '/HEAD/ { next } /dev/ { print $1 }')";
|
is_main="$(git branch --contains HEAD | awk '/HEAD/ { next } /dev/ { print $1 }')";
|
||||||
|
|
||||||
if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then
|
if [[ "${1}" == "ci" ]] && [[ -n "${is_main}" ]]; then
|
||||||
echo "Skipping build, because this commit does not appear to be on the 'dev' branch, and we only deploy commits on the 'main' branch.";
|
echo "Skipping build, because this commit does not appear to be on the 'dev' branch, and we only deploy commits on the 'main' branch.";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ fi
|
||||||
# ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
# ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
# ██ ██ ██ ██ ██████ ██ ██ ██ ████ ███████
|
# ██ ██ ██ ██ ██████ ██ ██ ██ ████ ███████
|
||||||
|
|
||||||
if [[ ! -z "${ARCHIVE}" ]]; then
|
if [[ -n "${ARCHIVE}" ]]; then
|
||||||
log_msg "Archiving content";
|
log_msg "Archiving content";
|
||||||
check_command tar;
|
check_command tar;
|
||||||
check_command gzip;
|
check_command gzip;
|
||||||
|
|
Loading…
Reference in a new issue