1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-13 05:03:02 +00:00

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

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}";