diff --git a/pre_cache_action.sh b/pre_cache_action.sh index 4b3ff4b..030f3b5 100755 --- a/pre_cache_action.sh +++ b/pre_cache_action.sh @@ -1,15 +1,17 @@ #!/bin/bash +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}"