Skip to content

Commit

Permalink
fix shellcheck references
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto committed Oct 19, 2023
1 parent 9c4d3b5 commit 02e2bbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cicd::bootstrap::clone_cicd_tools_repo() {
}

cicd::bootstrap::_delete_rootdir() {
cicd::debug "Removing existing CICD tools directory: '${CICD_BOOTSTRAP_ROOTDIR}'"
cicd::log::debug "Removing existing CICD tools directory: '${CICD_BOOTSTRAP_ROOTDIR}'"
rm -rf "${CICD_BOOTSTRAP_ROOTDIR}"
}

Expand All @@ -35,7 +35,7 @@ if [ -z "$CICD_BOOTSTRAP_SKIP_GIT_CLONE" ]; then
fi
fi

# shellcheck source=src/main.sh
# shellcheck source=src/load_module.sh
source "$CICD_BOOTSTRAP_ROOTDIR/src/load_module.sh" "$@" || exit 1
if [[ -z "$CICD_BOOTSTRAP_SKIP_CLEANUP" ]] && ! cicd::bootstrap::cleanup; then
echo "couldn't perform cicd tools cleanup!"
Expand Down
2 changes: 1 addition & 1 deletion src/load_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ fi

readonly CICD_LOADER_SCRIPTS_DIR

# shellcheck source=src/shared/loader.sh
if ! source "${CICD_LOADER_SCRIPTS_DIR}/shared/loader.sh"; then
echo "Error loading 'loader' module!"
exit 1
fi

# TODO: undo all loader module stuff
cicd::loader::load_module "$1"

0 comments on commit 02e2bbb

Please sign in to comment.