add deb-update.bash: apts, flatpak, snap

Why to have three different package managers with four different
commands to do a thing I am doing often, if I can script one command to
do it?
This commit is contained in:
Aminda Suomalainen 2018-05-02 11:29:49 +03:00
parent 639e148984
commit a3ae3f424c
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
1 changed files with 7 additions and 0 deletions

7
bash/deb-update.bash Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -x
apt-get -y update
apt-get "$@" upgrade
flatpak update
snap refresh
set +x