2022-05-15 19:15:21 +02:00
|
|
|
#!/bin/bash
|
2022-05-20 15:59:27 +02:00
|
|
|
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;
|
2022-05-15 19:15:21 +02:00
|
|
|
|