chore(scripts): ignore untracked files and print custom checkout path in logs (#117)
This commit is contained in:
Родитель
b6c892842b
Коммит
8cf8eec3a0
|
@ -49,7 +49,7 @@ fi
|
|||
if [[ $# == 2 ]]; then
|
||||
echo "WARNING: using custom checkout path $CHECKOUT_PATH"
|
||||
CHECKOUT_PATH=$2
|
||||
FRIENDLY_CHECKOUT_PATH="<custom_checkout>"
|
||||
FRIENDLY_CHECKOUT_PATH="<custom_checkout('$2')>"
|
||||
fi
|
||||
|
||||
# if there's no checkout folder - checkout one.
|
||||
|
@ -72,7 +72,7 @@ fi
|
|||
cd $CHECKOUT_PATH
|
||||
|
||||
# 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."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче