17 lines
206 B
Bash
Executable File
17 lines
206 B
Bash
Executable File
#!/bin/sh
|
|
sudo apt update
|
|
sudo apt list --upgradable
|
|
|
|
printf 'Would you like to upgrade (y/n)? '
|
|
read answer
|
|
|
|
if [ "$answer" != "${answer#[Yy]}" ] ;then
|
|
sudo apt upgrade -y
|
|
else
|
|
echo Ok bye
|
|
fi
|
|
|
|
|
|
|
|
|