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
2
2
3
3
set -e
4
+ set -o
5
+ set -u
6
+ set pipefail
4
7
5
- if [ -z " $VERSION " ]; then
8
+ if [[ -z " $VERSION " ] ]; then
6
9
echo " Provide the version as environment variable VERSION"
7
10
exit 1
8
11
fi
9
12
10
- if [ -z " $RUNTIME " ]; then
13
+ if [[ -z " $RUNTIME " ] ]; then
11
14
echo " Provide the runtime as environment variable RUNTIME"
12
15
exit 1
13
16
fi
@@ -33,7 +36,7 @@ APPIMAGETOOL_URL=https://github.com/AppImage/appimagetool/releases/download/cont
33
36
34
37
cd build
35
38
36
- if [ ! -f " appimagetool" ]; then
39
+ if [[ ! -f " appimagetool" ] ]; then
37
40
curl -o appimagetool -L " $APPIMAGETOOL_URL "
38
41
chmod +x appimagetool
39
42
fi
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
set -e
4
+ set -o
5
+ set -u
6
+ set pipefail
4
7
5
- if [ -z " $VERSION " ]; then
8
+ if [[ -z " $VERSION " ] ]; then
6
9
echo " Provide the version as environment variable VERSION"
7
10
exit 1
8
11
fi
9
12
10
- if [ -z " $RUNTIME " ]; then
13
+ if [[ -z " $RUNTIME " ] ]; then
11
14
echo " Provide the runtime as environment variable RUNTIME"
12
15
exit 1
13
16
fi
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
set -e
4
+ set -o
5
+ set -u
6
+ set pipefail
4
7
5
- if [ -z " $VERSION " ]; then
8
+ if [[ -z " $VERSION " ] ]; then
6
9
echo " Provide the version as environment variable VERSION"
7
10
exit 1
8
11
fi
9
12
10
- if [ -z " $RUNTIME " ]; then
13
+ if [[ -z " $RUNTIME " ] ]; then
11
14
echo " Provide the runtime as environment variable RUNTIME"
12
15
exit 1
13
16
fi
You can’t perform that action at this time.
0 commit comments