Fix ordering of library function call and include of library #68

This commit is contained in:
awalsh128 2022-11-24 08:09:52 -08:00
parent 55d5c82d83
commit a50c683869

View file

@ -2,16 +2,16 @@
set -e set -e
# Include library.
script_dir="$(dirname -- "$(realpath -- "${0}")")"
source "${script_dir}/lib.sh"
# Debug mode for diagnosing issues. # Debug mode for diagnosing issues.
# Setup first before other operations. # Setup first before other operations.
debug="${4}" debug="${4}"
validate_bool "${debug}" debug 1 validate_bool "${debug}" debug 1
test ${debug} == "true" && set -x test ${debug} == "true" && set -x
# Include library.
script_dir="$(dirname -- "$(realpath -- "${0}")")"
source "${script_dir}/lib.sh"
# Directory that holds the cached packages. # Directory that holds the cached packages.
cache_dir="${1}" cache_dir="${1}"