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