Skip to content

Commit

Permalink
Fall back to install_and_cache_pkg.sh if restore_pkg.sh fails
Browse files Browse the repository at this point in the history
  • Loading branch information
torsknod2 authored Jan 12, 2025
1 parent 5902b33 commit e40d1ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions post_cache_action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ test "${debug}" = "true" && set -x
# List of the packages to use.
packages="${@:6}"

if test "${cache_hit}" = "true"; then
${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
([ "${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}

log_empty_line

0 comments on commit e40d1ce

Please sign in to comment.