void/xrestricted: fix script using versions as package names

This commit is contained in:
Alexander Gehrke 2021-12-08 10:47:00 +01:00
parent 99ea4f9851
commit 0142499b6b

View file

@ -95,7 +95,7 @@ case $1 in
awk '{ printf "\x1b[34m%s\x1b[0m: %s → \x1b[92m%s\x1b[0m\n", $1, $2, $3 }' <<<"$possible_updates"
printf "Run updates? [y/N] "
if read -q; then
for pkg in $(cut -d' ' -f 1,3 <<<"$possible_updates"); do
for pkg ver in $(cut -d' ' -f 1,3 <<<"$possible_updates"); do
install_restricted $pkg $ver
done
fi