adding sarpdate script

This commit is contained in:
Andy Pack 2022-11-08 20:52:56 +00:00
parent e9d1371ba6
commit 2b1a316575
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

33
sarpdate Executable file
View File

@ -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