From 60c15ce2f095e46d08d546a6c8d22274083a2148 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 30 Jun 2022 08:28:26 -0700 Subject: [PATCH] Include library in all scripts. --- post_cache_action.sh | 4 ++++ restore_pkgs.sh | 4 ++++ 2 files changed, 8 insertions(+) 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}"