From d9dc708da536eeed7754b925532375649c7e9488 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 18 Nov 2020 13:28:09 +0100 Subject: [PATCH] Push bugfix --- myvc-push.sh | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/myvc-push.sh b/myvc-push.sh index c378ebe..f832462 100755 --- a/myvc-push.sh +++ b/myvc-push.sh @@ -76,7 +76,9 @@ CHANGED=$? UNTRACKED=`git ls-files --others --exclude-standard` -if [ $STAGED ] || [ $CHANGED ] || [ -n "$UNTRACKED" ]; then +echo S$STAGED C$CHANGED U$UNTRACKED + +if [ "$STAGED" == "1" ] || [ "$CHANGED" == "1" ] || [ -n "$UNTRACKED" ]; then if [ "$APPLY_UNCOMMITED" == "TRUE" ]; then echo "[WARN] You are applying uncommited changes." else @@ -88,6 +90,8 @@ fi COMMIT_SHA=$(git rev-parse HEAD) echo "[INFO] HEAD: $COMMIT_SHA" +exit + # Query functions dbQuery() { @@ -120,7 +124,7 @@ if [[ ! "$DB_VERSION" =~ ^[0-9]*$ ]]; then exit 4 fi if [[ -z "$DB_VERSION" ]]; then - DB_VERSION=10000 + DB_VERSION=00000 fi if [ "$IS_USER" == "TRUE" ]; then diff --git a/package.json b/package.json index 2e8a084..f3184c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myvc", - "version": "1.0.14", + "version": "1.0.15", "author": "Verdnatura Levante SL", "description": "MySQL Version Control", "license": "GPL-3.0",