File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ while true; do
2727 echo " Upgradeable packages:"
2828 printf ' %s\n' " ${upgradeable_packages[@]} "
2929
30- first_package =" ${upgradeable_packages[0 ]} "
31- if [[ -z " $first_package " || " $first_package " == * WARNING* || " $first_package " == " Listing" ]]; then
30+ last_package =" ${upgradeable_packages[-1 ]} "
31+ if [[ -z " $last_package " || " $last_package " == * WARNING* || " $last_package " == " Listing" ]]; then
3232 echo " Invalid package name detected, skipping..."
3333 continue
3434 fi
3535
36- echo " Upgrading first package: $first_package "
37- _op _chroot apt install -y " $first_package " || die " Failed to upgrade $first_package "
36+ echo " Upgrading last package: $last_package "
37+ _op _chroot apt install -y " $last_package " || die " Failed to upgrade $last_package "
3838done
3939
4040echo " Releasing held packages..."
You can’t perform that action at this time.
0 commit comments