File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22
33set -e
4+ set -o
5+ set -u
6+ set pipefail
47
5- if [ -z " $VERSION " ]; then
8+ if [[ -z " $VERSION " ] ]; then
69 echo " Provide the version as environment variable VERSION"
710 exit 1
811fi
912
10- if [ -z " $RUNTIME " ]; then
13+ if [[ -z " $RUNTIME " ] ]; then
1114 echo " Provide the runtime as environment variable RUNTIME"
1215 exit 1
1316fi
@@ -33,7 +36,7 @@ APPIMAGETOOL_URL=https://github.com/AppImage/appimagetool/releases/download/cont
3336
3437cd build
3538
36- if [ ! -f " appimagetool" ]; then
39+ if [[ ! -f " appimagetool" ] ]; then
3740 curl -o appimagetool -L " $APPIMAGETOOL_URL "
3841 chmod +x appimagetool
3942fi
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22
33set -e
4+ set -o
5+ set -u
6+ set pipefail
47
5- if [ -z " $VERSION " ]; then
8+ if [[ -z " $VERSION " ] ]; then
69 echo " Provide the version as environment variable VERSION"
710 exit 1
811fi
912
10- if [ -z " $RUNTIME " ]; then
13+ if [[ -z " $RUNTIME " ] ]; then
1114 echo " Provide the runtime as environment variable RUNTIME"
1215 exit 1
1316fi
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22
33set -e
4+ set -o
5+ set -u
6+ set pipefail
47
5- if [ -z " $VERSION " ]; then
8+ if [[ -z " $VERSION " ] ]; then
69 echo " Provide the version as environment variable VERSION"
710 exit 1
811fi
912
10- if [ -z " $RUNTIME " ]; then
13+ if [[ -z " $RUNTIME " ] ]; then
1114 echo " Provide the runtime as environment variable RUNTIME"
1215 exit 1
1316fi
You can’t perform that action at this time.
0 commit comments