Advertisement
Guest User

AutoUpdate.sh

a guest
May 8th, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3. sudo apt update
  4. sudo apt -y full-upgrade
  5. sudo apt autoremove
  6. sudo apt clean
  7. sudo apt autoclean -y
  8.  
  9. if RESULT=$(echo "$OUTPUT" | grep "Generating /boot/intrid.img")
  10. then
  11.   sudo apt reboot
  12. fi
  13. echo "Update Complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement