Fix shellcheck errors
This commit is contained in:
parent
9669e0ec9d
commit
36e6f51957
1 changed files with 5 additions and 4 deletions
|
@ -30,7 +30,8 @@ gpg_key_id="7A37B795C20E4651D9BBE1B2D48D801C6A66A5D8";
|
||||||
|
|
||||||
# Check out the lantern git submodule if needed
|
# Check out the lantern git submodule if needed
|
||||||
if [ ! -f "${lantern_path}/lantern.sh" ]; then git submodule update --init "${lantern_path}"; fi
|
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";
|
source "${lantern_path}/lantern.sh";
|
||||||
|
|
||||||
if [[ "$#" -lt 1 ]]; then
|
if [[ "$#" -lt 1 ]]; then
|
||||||
|
@ -96,7 +97,7 @@ task_setup() {
|
||||||
task_end $?;
|
task_end $?;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "${repo_dir}/aptosaurus.asc" ]; then
|
if [ ! -f "${dir_repo}/aptosaurus.asc" ]; then
|
||||||
task_begin "Hard linking public signing key";
|
task_begin "Hard linking public signing key";
|
||||||
cp -al "./public.gpg" "${dir_repo}/aptosaurus.asc";
|
cp -al "./public.gpg" "${dir_repo}/aptosaurus.asc";
|
||||||
task_end $?;
|
task_end $?;
|
||||||
|
@ -144,7 +145,7 @@ task_update() {
|
||||||
|
|
||||||
task_metafiles() {
|
task_metafiles() {
|
||||||
if [[ "$(basename "${PWD}")" != "$(basename "${dir_repo}")" ]]; then
|
if [[ "$(basename "${PWD}")" != "$(basename "${dir_repo}")" ]]; then
|
||||||
cd "${dir_repo}";
|
cd "${dir_repo}" || { echo "Error: Failed to cd into repo"; exit 3; };
|
||||||
fi
|
fi
|
||||||
task_begin "Building packages file";
|
task_begin "Building packages file";
|
||||||
apt-ftparchive packages . >Packages;
|
apt-ftparchive packages . >Packages;
|
||||||
|
@ -202,4 +203,4 @@ task_update-cron() {
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
tasks_run $@;
|
tasks_run "$@";
|
||||||
|
|
Loading…
Reference in a new issue