aboutsummaryrefslogtreecommitdiff
path: root/upgrade.sh
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade.sh')
-rwxr-xr-xupgrade.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/upgrade.sh b/upgrade.sh
new file mode 100755
index 0000000..5c4e9b3
--- /dev/null
+++ b/upgrade.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+cd wordpress
+git fetch --tags
+
+TAG=""
+while [ "$TAG" = "" ]; do
+ read -p "Please enter tag, \"l\" to list tags or \"q\" to quit: " TAG
+ if [ "$TAG" = "l" ]; then
+ TAG=""
+ git tag
+ elif [ "$TAG" = "q" ]; then
+ exit 0
+ fi
+done
+
+git checkout $TAG
+
+cd ..