Skip to content

Commit 2eebe4e

Browse files
committed
Update upgrade script
1 parent 438e1f1 commit 2eebe4e

File tree

2 files changed

+11
-73
lines changed

2 files changed

+11
-73
lines changed

auto/pub.sh

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
#!/bin/bash
22

3+
REALPATH=$(realpath $0)
4+
WORK_DIR=$(cd $(dirname $REALPATH)/.. && pwd)
5+
echo "Run pub at $WORK_DIR from $0"
6+
cd $WORK_DIR
7+
8+
git st |grep -q 'nothing to commit'
9+
if [[ $? -ne 0 ]]; then
10+
echo "Failed: Please commit before release";
11+
exit 1
12+
fi
13+
314
RELEASE=$(git describe --tags --abbrev=0 --exclude release-*)
415
REVISION=$(echo $RELEASE|awk -F . '{print $3}')
516
let NEXT=$REVISION+1

auto/release.sh

-73
This file was deleted.

0 commit comments

Comments
 (0)