[arkdep] Tiny code cleanup

This commit is contained in:
Dennis ten Hoove 2024-07-15 01:38:57 +02:00
parent 2d02e146fd
commit 9096095343
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

7
arkdep
View file

@ -561,7 +561,6 @@ get_update () {
declare new_ver=()
declare removed=()
declare added=()
declare added_ver=()
for pkg in "${new_pkgs[@]}"; do
# Split package name and package versions in to list
@ -588,9 +587,11 @@ get_update () {
fi
fi
done
done
# Temporary hard code setting
update_print_mode='list'
# Loop and print changed packages and diff
if [[ $update_print_mode == 'list' ]]; then
num=0
@ -603,7 +604,7 @@ get_update () {
fi
if [[ ${#added[@]} -ne 0 ]]; then
printf '\nRemoved:\n'
printf '\nNew:\n'
for add in "${added[@]}"; do
printf "$add\n"
done