chore(lab): Tweaks to skip_build script
This commit is contained in:
parent
6257096e0d
commit
8cc11d6950
1 changed files with 6 additions and 6 deletions
|
@ -32,14 +32,14 @@ for d in ../*/ ; do
|
||||||
if [[ "$skip" = "0" ]]; then
|
if [[ "$skip" = "0" ]]; then
|
||||||
src="${d}src"
|
src="${d}src"
|
||||||
config="${d}config"
|
config="${d}config"
|
||||||
if `git diff HEAD^ HEAD $src`; then
|
if `git diff HEAD^ HEAD --quiet $src`; then
|
||||||
# We have local changes, go ahead and build
|
# We have local changes, go ahead and build
|
||||||
echo "✅ - Changed detected in $src Let's build this thing"
|
echo "✅ - Changed detected in $src, let's build this thing"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if `git diff HEAD^ HEAD $config`; then
|
if `git diff HEAD^ HEAD --quiet $config`; then
|
||||||
# We have local changes, go ahead and build
|
# We have local changes, go ahead and build
|
||||||
echo "✅ - Changed detected in $config Let's build this thing"
|
echo "✅ - Changed detected in $config, let's build this thing"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -50,11 +50,11 @@ if \
|
||||||
git diff --quiet HEAD^ HEAD . \
|
git diff --quiet HEAD^ HEAD . \
|
||||||
; then
|
; then
|
||||||
# We have local changes, go ahead and build
|
# We have local changes, go ahead and build
|
||||||
echo "✅ - Changed detected; Let's build this thing"
|
echo "✅ - Changed detected in lab, let's build this thing"
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
# No changes, do not waste time building this commit
|
# No changes, do not waste time building this commit
|
||||||
echo "🛑 - No changes detected; Let's just not"
|
echo "🛑 - No changes detected, let's just not"
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue