mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 18:17:15 +00:00
Fix bad log lines.
This commit is contained in:
parent
28694f7296
commit
58300fb993
|
@ -19,7 +19,7 @@ packages="$(normalize_package_list "${input_packages}")"
|
||||||
# Create cache directory so artifacts can be saved.
|
# Create cache directory so artifacts can be saved.
|
||||||
mkdir -p ${cache_dir}
|
mkdir -p ${cache_dir}
|
||||||
|
|
||||||
log -n "Validating action arguments (version='${version}', packages='${packages}')...";
|
log "Validating action arguments (version='${version}', packages='${packages}')...";
|
||||||
if grep -q " " <<< "${version}"; then
|
if grep -q " " <<< "${version}"; then
|
||||||
log "aborted"
|
log "aborted"
|
||||||
log "Version value '${version}' cannot contain spaces." >&2
|
log "Version value '${version}' cannot contain spaces." >&2
|
||||||
|
@ -32,12 +32,13 @@ if test -z "${packages}"; then
|
||||||
log "Packages argument cannot be empty." >&2
|
log "Packages argument cannot be empty." >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "done"
|
log "done"
|
||||||
|
|
||||||
log_empty_line
|
log_empty_line
|
||||||
|
|
||||||
versioned_packages=""
|
versioned_packages=""
|
||||||
log -n "Verifying packages..."
|
log "Verifying packages..."
|
||||||
for package in ${packages}; do
|
for package in ${packages}; do
|
||||||
if test ! "$(apt show "${package}")"; then
|
if test ! "$(apt show "${package}")"; then
|
||||||
echo "aborted"
|
echo "aborted"
|
||||||
|
@ -47,7 +48,7 @@ for package in ${packages}; do
|
||||||
read package_name package_ver < <(get_package_name_ver "${package}")
|
read package_name package_ver < <(get_package_name_ver "${package}")
|
||||||
versioned_packages=""${versioned_packages}" "${package_name}"="${package_ver}""
|
versioned_packages=""${versioned_packages}" "${package_name}"="${package_ver}""
|
||||||
done
|
done
|
||||||
echo "done"
|
log "done"
|
||||||
|
|
||||||
log_empty_line
|
log_empty_line
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue