mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +00:00
Only install apt-fast from source if not present
This commit is contained in:
parent
65cf98ee12
commit
da60791e1f
|
@ -37,12 +37,14 @@ write_manifest "main" "${manifest_main}" "${cache_dir}/manifest_main.log"
|
|||
|
||||
log_empty_line
|
||||
|
||||
if ! apt-fast --version > /dev/null 2>&1; then
|
||||
log "Installing apt-fast for optimized installs..."
|
||||
# Install apt-fast for optimized installs.
|
||||
/bin/bash -c "$(curl -sL https://git.io/vokNn)"
|
||||
log "done"
|
||||
|
||||
log_empty_line
|
||||
fi
|
||||
|
||||
log "Updating APT package list..."
|
||||
if [[ -z "$(find -H /var/lib/apt/lists -maxdepth 0 -mmin -5)" ]]; then
|
||||
|
|
Loading…
Reference in a new issue