Merge script include snippet.

This commit is contained in:
awalsh128 2022-07-15 15:38:51 -07:00
parent 1d2f5e1b23
commit d5b9449cd3

View file

@ -3,8 +3,12 @@
# Fail on any error. # Fail on any error.
set -e set -e
# Include library.
script_dir="$(dirname -- "$(realpath -- "${0}")")"
source "${script_dir}/lib.sh"
# Directory that holds the cached packages. # Directory that holds the cached packages.
cache_dir=$1 cache_dir="${1}"
# List of the packages to use. # List of the packages to use.
input_packages="${@:2}" 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. # Remove trailing comma and write to manifest_main file.
echo "${manifest_main:0:-1}" > "${manifest_main_filepath}" echo "${manifest_main:0:-1}" > "${manifest_main_filepath}"
log "done." log "done."