aboutsummaryrefslogtreecommitdiff
path: root/upgrade.sh
blob: 5c4e9b3a44a817068dc49a629933a87693d89093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ..