mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +00:00
Account for packages without deps.
This commit is contained in:
parent
c0c05ca285
commit
799512caf1
6
lib.sh
6
lib.sh
|
@ -22,7 +22,11 @@ function get_dep_packages {
|
|||
exit 2
|
||||
fi
|
||||
done < <(apt-fast install --dry-run --yes "${1}" | grep "^Inst" | grep -v "^Inst ${1} " | sort)
|
||||
echo "${dep_packages:0:-1}" # Removing trailing space.
|
||||
if test -n "${dep_packages}"; then
|
||||
echo "${dep_packages:0:-1}" # Removing trailing space.
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
# Split fully qualified package into name and version.
|
||||
|
|
Loading…
Reference in a new issue