From a50c6838697ecb77318237cbad1b4f3980c1a09a Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 24 Nov 2022 08:09:52 -0800 Subject: [PATCH] Fix ordering of library function call and include of library #68 --- pre_cache_action.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}"