diff --git a/post_cache_action.sh b/post_cache_action.sh index 8440aa3..144fe76 100755 --- a/post_cache_action.sh +++ b/post_cache_action.sh @@ -3,6 +3,10 @@ # Fail on any error. set -e +# Include library. +script_dir="$(dirname -- "$(realpath -- "${0}")")" +source "${script_dir}/lib.sh" + # Directory that holds the cached packages. cache_dir="${1}" diff --git a/restore_pkgs.sh b/restore_pkgs.sh index 647a2aa..d056630 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -3,6 +3,10 @@ # Fail on any error. set -e +# Include library. +script_dir="$(dirname -- "$(realpath -- "${0}")")" +source "${script_dir}/lib.sh" + # Directory that holds the cached packages. cache_dir="${1}"