1
0
Fork 0

chore(dev): Updated skip script

This commit is contained in:
Joost De Cock 2022-05-20 15:59:27 +02:00
parent 038588bf9c
commit 108d83b834

View file

@ -1,11 +1,19 @@
#!/bin/bash
if git diff HEAD^ HEAD --quiet ../freesewing.shared || git diff --quiet HEAD^ HEAD . ; then
# We have local changes, go ahead and build
echo "✅ - Changed detected; Let's build this thing"
exit 1;
else
# No changes, do not waste time building this commit
echo "🛑 - No changes detected; Let's just not"
exit 0;
fi
check=( \
"." \
"../../markdown/dev" \
"../freesewing.shared" \
)
build=0
for d in ${check[@]}; do
if `git diff HEAD^ HEAD --quiet $d`; then
# We have changes, go ahead and build
echo "✅ - Changed detected in $d, let's build this thing"
exit 1;
fi
done
# No changes, do not waste time building this commit
echo "🛑 - No changes detected; Let's just not"
exit 0;