Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2022 18:04
What would you like to do?
End-of-day update and shut down script
#!/usr/bin/env bash
set -Eeuo pipefail
sudo --validate
concurrently \
--names 'apt,docker,node,ruby,rust' \
--prefix-colors 'yellow,blue,green,red,cyan' \
'sudo apt-get update && sudo apt-get upgrade --yes' \
'docker system prune --force --volumes' \
'nvm-update' \
'rbenv update' \
'rustup update stable && cargo install-update --all'
sudo poweroff
Copy link

concurrently is open-cli-tools/concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment