mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-03-04 12:19:39 +00:00
Fall back to install_and_cache_pkg.sh if restore_pkg.sh fails
This commit is contained in:
parent
5902b33ae2
commit
e40d1ce99b
|
@ -28,10 +28,6 @@ test "${debug}" = "true" && set -x
|
||||||
# List of the packages to use.
|
# List of the packages to use.
|
||||||
packages="${@:6}"
|
packages="${@:6}"
|
||||||
|
|
||||||
if test "${cache_hit}" = "true"; then
|
([ "${cache_hit}" = "true" ] && ${script_dir}/restore_pkgs.sh "${cache_dir}" "${cache_restore_root}" "${execute_install_scripts}" "${debug}") || ${script_dir}/install_and_cache_pkgs.sh "${cache_dir}" "${debug}" ${packages}
|
||||||
${script_dir}/restore_pkgs.sh "${cache_dir}" "${cache_restore_root}" "${execute_install_scripts}" "${debug}"
|
|
||||||
else
|
|
||||||
${script_dir}/install_and_cache_pkgs.sh "${cache_dir}" "${debug}" ${packages}
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_empty_line
|
log_empty_line
|
||||||
|
|
Loading…
Reference in a new issue