From c3f7ce5b8517d4dc5cc657dcd78d8d1af8840aaa Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 19 Mar 2016 09:11:45 +0100 Subject: [PATCH] Small bugfix for latest commit --- compile.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index 163e4d225..7183f9dbd 100755 --- a/compile.sh +++ b/compile.sh @@ -77,8 +77,9 @@ if [[ ! -d $SRC/lib ]]; then git clone https://github.com/igorpecovnik/lib fi cd $SRC/lib; git pull >/dev/null 2>&1 +CHANGED_FILES=$(git checkout | grep -P '^M') +if [[ -n $CHANGED_FILES ]]; then CHANGED_FILES=$(git checkout ${LIB_TAG:- master} | grep -P '^M' | awk '{print $2}' | tr '\n' ' ') -if [[ $? == 0 ]]; then echo -e "[\e[0;35m warn \x1B[0m] Can't update [lib/] since you made changes to: [\e[0;33m ${CHANGED_FILES::-1} \x1B[0m]" fi #-------------------------------------------------------------------------------------------------------------------------------- @@ -92,4 +93,4 @@ fi # If you are committing new version of this file, increment VERSION # Only integers are supported -# VERSION=10 +# VERSION=11