Skip to content

Commit f2bb26a

Browse files
Fix up shellcheck fails
1 parent 805898d commit f2bb26a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/common.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function ensure_cmake {
4343
uname=$(uname -s)
4444
tmpdir=$(mktemp -d)
4545
cmake="cmake-$version.$build-$uname-$arch"
46-
cd "$tmpdir"
46+
cd "$tmpdir" || exit 1
4747
if curl -fsSO "https://cmake.org/files/v$version/$cmake.sh"; then
4848
# Install binary package if we could retrieve it
4949
$SUDO mkdir -p /opt/cmake
@@ -56,7 +56,7 @@ function ensure_cmake {
5656
cmake="cmake-$version.$build"
5757
curl -fsSO "https://cmake.org/files/v$version/$cmake.tar.gz"
5858
tar xfz "$cmake.tar.gz"
59-
cd "$cmake"
59+
cd "$cmake" || exit 1
6060
./configure
6161
make
6262
$SUDO make install
@@ -210,10 +210,10 @@ function copy_sdl2_libs_to_app {
210210
# CREATE WRAPPER
211211
mv "$APP_MACOSX_DIR/genus" "$APP_MACOSX_DIR/genus.bin"
212212
tee "$APP_MACOSX_DIR/genus" <<-"EOF"
213-
#!/usr/bin/env bash
214-
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )"
215-
(cd $MY_DIR && ./genus.bin)
216-
EOF
213+
#!/usr/bin/env bash
214+
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )"
215+
(cd $MY_DIR && ./genus.bin)
216+
EOF
217217
chmod 0755 "$BASE_DIR/build/genus.app/Contents/MacOS/genus"
218218

219219
# INSTALL APP.PLIST & ETC

0 commit comments

Comments
 (0)