From 967325d5de8cfb2a357b3c5ef0c3a671d74b9a92 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 1 Oct 2015 16:52:15 -0400 Subject: [PATCH] Add simple update script --- update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..9a920d7 --- /dev/null +++ b/update.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "Updating .dotfiles" +git pull + +for dir in */.git +do + dir=$(sed s/\.git// <<< "$dir") + echo "Updating $dir" + cd "$dir" + git pull + cd .. +done