chore(scripts): ignore untracked files during patch export (#124)
This commit is contained in:
parent
ba54ad46b3
commit
99f9b11be8
|
|
@ -48,9 +48,9 @@ fi
|
||||||
|
|
||||||
# we will use this just for beauty.
|
# we will use this just for beauty.
|
||||||
if [[ $# == 2 ]]; then
|
if [[ $# == 2 ]]; then
|
||||||
echo "WARNING: using custom checkout path $CHECKOUT_PATH"
|
echo "WARNING: using custom checkout path $2"
|
||||||
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 - bail out.
|
# if there's no checkout folder - bail out.
|
||||||
|
|
@ -84,7 +84,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if git repo is dirty.
|
# Check 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 - aborting export."
|
echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - aborting export."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue