Fix bad log lines.

This commit is contained in:
awalsh128 2022-08-02 19:46:41 -07:00
parent 28694f7296
commit 58300fb993

View file

@ -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