From 2b1a316575896f39092ab637993b689844cd7d96 Mon Sep 17 00:00:00 2001 From: Andy Pack Date: Tue, 8 Nov 2022 20:52:56 +0000 Subject: [PATCH] adding sarpdate script --- sarpdate | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 sarpdate diff --git a/sarpdate b/sarpdate new file mode 100755 index 0000000..2c68ba3 --- /dev/null +++ b/sarpdate @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +echo ">> updating everything....." +echo +echo + +echo ">> updating local brew dependencies...." +echo +brew update +echo +echo +echo ">> which leaves these outdated...." +echo +brew outdated +echo +read -p ">> upgrade? (y/n) " updatebrew + +if [ updatebrew = "y" ]; then + echo ">> upgrading......" + brew upgrade +fi + +echo +echo +echo ">> updating ansible environment...." +cd ~/dev/infra/ansible +poetry update + +echo +echo +echo ">> running a few playbooks...." +echo +./update \ No newline at end of file