From d5b9449cd38fc926b605bde918a404c876fc66c4 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Fri, 15 Jul 2022 15:38:51 -0700 Subject: [PATCH] Merge script include snippet. --- install_and_cache_pkgs.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index 467f980..2c22fb2 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -3,8 +3,12 @@ # 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 +cache_dir="${1}" # List of the packages to use. input_packages="${@:2}" @@ -81,4 +85,3 @@ log "Writing main requested packages manifest to ${manifest_main_filepath}..." # Remove trailing comma and write to manifest_main file. echo "${manifest_main:0:-1}" > "${manifest_main_filepath}" log "done." -