Software, audio, and other musings.

Neat Script

June 10, 2016

I run a Xubuntu 16.04 box as my main machine and I am rather tired of running the update and then upgrade commands for apt. This is common situation a lot of people just assign to an alias and I figured I may want to automate this process in a cron or something at some point. I decided to call the script upgrate.

#!/usr/bin/env bash
apt-get update
apt-get upgrade $@

The $@ variable is for passing an argument to the upgrade part of the script, like a -y flag.

$ sudo upgrate -y
To Top