- ##cb-update##
- #!/bin/bash
- SDIR="/home/$USER/bin/cb-lib-dir"
- terminator --title="#! Upgrade Script" --command="$SDIR/cb-lib-update"
- ##cb-lib-update##
- #!/bin/bash
- clear
- echo "
- UPDATE INSTALLED PACKAGES
- -------------------------
- Would you like to update the installed packages on your system?
- If you choose to do this, this script will execute the command:
- sudo apt-get update && sudo apt-get dist-upgrade
- Hit any key to update your system, or \"x\" to exit..."
- read -n1 a
- a=`echo $a | tr '[A-Z]' '[a-z]'`
- if [ "$a" != "x" ]; then
- echo ""
- sudo apt-get update && sudo apt-get dist-upgrade
- else
- exit 0
- fi
- echo ""
- read -p "Script terminated, hit [ENTER] key to exit."
- exit 0
Posted by VDP76 on Thu 12th Jul 20:31 (modification of post by VDP76 view diff)
diff | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.