Fix some shellcheck errors

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 12:28:25 +01:00
parent e268b91d84
commit 638728c4d5
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 2 deletions

6
build
View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Make sure the current directory is the location of this script to simplify matters
cd "$(dirname $(readlink -f $0))";
cd "$(dirname "$(readlink -f $0)")" || exit 1;
################
### Settings ###
################
@ -16,18 +16,20 @@ lantern_path="./lantern-build-engine";
###
# Put any custom settings here.
build_output_folder="./dist";
# build_output_folder="./dist";
###############################################################################
# Check out the lantern git submodule if needed
if [ ! -f "${lantern_path}/lantern.sh" ]; then git submodule update --init "${lantern_path}"; fi
# shellcheck disable=SC1090
source "${lantern_path}/lantern.sh";
if [[ "$#" -lt 1 ]]; then
echo -e "${FBLE}${project_name}${RS} build script";
echo -e " by Starbeamrainbowlabs";
# shellcheck disable=SC2154
echo -e "${LC}Powered by the lantern build engine, v${version}${RS}";
echo -e "";
echo -e "${CSECTION}Usage${RS}";