mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Merge script include snippet.
This commit is contained in:
parent
1d2f5e1b23
commit
d5b9449cd3
|
@ -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."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue