update 231 B

123456789101112
  1. #!/bin/bash
  2. if [[ $EUID -ne 0 ]];then
  3. sudo $0 $@;
  4. exit;
  5. fi;
  6. echo "Updating local lists";
  7. apt-get update;
  8. echo "Doing basic upgrading";
  9. apt-get upgrade;
  10. echo "Doing distro upgrading";
  11. apt-get dist-upgrade;
  12. echo "Done updating";