chore(scripts): ignore untracked files and print custom checkout path in logs (#117)
This commit is contained in:
parent
b6c892842b
commit
8cf8eec3a0
|
|
@ -49,7 +49,7 @@ fi
|
||||||
if [[ $# == 2 ]]; then
|
if [[ $# == 2 ]]; then
|
||||||
echo "WARNING: using custom checkout path $CHECKOUT_PATH"
|
echo "WARNING: using custom checkout path $CHECKOUT_PATH"
|
||||||
CHECKOUT_PATH=$2
|
CHECKOUT_PATH=$2
|
||||||
FRIENDLY_CHECKOUT_PATH="<custom_checkout>"
|
FRIENDLY_CHECKOUT_PATH="<custom_checkout('$2')>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if there's no checkout folder - checkout one.
|
# if there's no checkout folder - checkout one.
|
||||||
|
|
@ -72,7 +72,7 @@ fi
|
||||||
cd $CHECKOUT_PATH
|
cd $CHECKOUT_PATH
|
||||||
|
|
||||||
# Bail out if git repo is dirty.
|
# Bail out if git repo is dirty.
|
||||||
if [[ -n $(git status -s) ]]; then
|
if [[ -n $(git status -s --untracked-files=no) ]]; then
|
||||||
echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - commit everything and re-run the script."
|
echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - commit everything and re-run the script."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue