Fix shellcheck errors

This commit is contained in:
Starbeamrainbowlabs 2020-03-23 01:53:14 +00:00
parent 9669e0ec9d
commit 36e6f51957
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -30,7 +30,8 @@ gpg_key_id="7A37B795C20E4651D9BBE1B2D48D801C6A66A5D8";
# Check out the lantern git submodule if needed
if [ ! -f "${lantern_path}/lantern.sh" ]; then git submodule update --init "${lantern_path}"; fi
# The lantern build engine is checked elsewhere
# shellcheck source=/dev/null
source "${lantern_path}/lantern.sh";
if [[ "$#" -lt 1 ]]; then
@ -96,7 +97,7 @@ task_setup() {
task_end $?;
fi
if [ ! -f "${repo_dir}/aptosaurus.asc" ]; then
if [ ! -f "${dir_repo}/aptosaurus.asc" ]; then
task_begin "Hard linking public signing key";
cp -al "./public.gpg" "${dir_repo}/aptosaurus.asc";
task_end $?;
@ -144,7 +145,7 @@ task_update() {
task_metafiles() {
if [[ "$(basename "${PWD}")" != "$(basename "${dir_repo}")" ]]; then
cd "${dir_repo}";
cd "${dir_repo}" || { echo "Error: Failed to cd into repo"; exit 3; };
fi
task_begin "Building packages file";
apt-ftparchive packages . >Packages;
@ -202,4 +203,4 @@ task_update-cron() {
###############################################################################
tasks_run $@;
tasks_run "$@";