mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
remove skip flag, add animated dots
This commit is contained in:
@@ -1,18 +1,19 @@
|
|||||||
# check if default.config.ini was changed and staged
|
# check if default.config.ini was changed and staged
|
||||||
if git diff --cached --name-only | grep -q 'default\.config\.ini$'; then
|
if git diff --cached --name-only | grep -q 'default\.config\.ini$'; then
|
||||||
if [ "$SKIP_CONFIG_BUILD" = "1" ]; then
|
echo ""
|
||||||
echo ""
|
echo "📝 Hey! You changed default.config.ini, so let me regenerate the config types first before we commit your change..."
|
||||||
echo "⏭️ Skipping config type generation (SKIP_CONFIG_BUILD=1)"
|
echo ""
|
||||||
echo ""
|
printf " Generating"
|
||||||
else
|
yarn bks:config:build > /dev/null 2>&1 &
|
||||||
echo ""
|
pid=$!
|
||||||
echo "📝 Hey! You changed default.config.ini, so let me regenerate the config types first before we commit your change..."
|
while kill -0 $pid 2>/dev/null; do
|
||||||
echo " (To skip this, run: SKIP_CONFIG_BUILD=1 git commit ...)"
|
printf "."
|
||||||
echo ""
|
sleep 0.3
|
||||||
yarn bks:config:build
|
done
|
||||||
git add apps/studio/src/typings/bksConfig.d.ts
|
wait $pid
|
||||||
echo ""
|
echo ""
|
||||||
echo "✅ Config types regenerated and staged!"
|
git add apps/studio/src/typings/bksConfig.d.ts
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
echo "✅ Config types regenerated and staged!"
|
||||||
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user