Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- PKGS=""
- IFS=' ' read -r -a array <<< "$PKGS"
- NUM=$(( ${#array[@]} - 1 ))
- for index in "${!array[@]}"
- do
- echo "---[ Upgrading $index of // $NUM ${array[index]} // ]------"
- apt-get install --only-upgrade -y ${array[index]}
- echo
- echo
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement