This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Copyright (C) 2009-2017 Three Nine Consulting | |
| # Always good practice to update packages. However ask user if they would like to do so | |
| # For explanation on how this works and why check out https://garywoodfine.com/use-pbcopy-on-ubuntu/ | |
| read -p "Do you want to update your package repositories before proceeding ? " -n 1 -r | |
| echo #adding new line | |
| if [[ $REPLY =~ ^[Yy]$ ]] | |
| then | |
| sudo apt update | |
| sudo apt upgrade -y |