CrunchBang Linux Pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

CrunchBang Linux Pastebin

Posted by VDP76 on Thu 12th Jul 20:31 (modification of post by VDP76 view diff)
diff | download | new post

  1. ##cb-update##
  2.  
  3. #!/bin/bash
  4.  
  5. SDIR="/home/$USER/bin/cb-lib-dir"
  6. terminator --title="#! Upgrade Script" --command="$SDIR/cb-lib-update"
  7.  
  8. ##cb-lib-update##
  9.  
  10. #!/bin/bash
  11. clear
  12. echo "
  13.   UPDATE INSTALLED PACKAGES
  14.   -------------------------
  15.   Would you like to update the installed packages on your system?
  16.   If you choose to do this, this script will execute the command:
  17.  
  18.       sudo apt-get update && sudo apt-get dist-upgrade
  19.  
  20.   Hit any key to update your system, or \"x\" to exit..."
  21.  
  22.  
  23. read -n1 a
  24. a=`echo $a | tr '[A-Z]' '[a-z]'`
  25. if [ "$a" != "x" ]; then
  26.     echo ""
  27.     sudo apt-get update && sudo apt-get dist-upgrade
  28.     else
  29.     exit 0
  30. fi
  31. echo ""
  32. read -p "Script terminated, hit [ENTER] key to exit."
  33. exit 0

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.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me