Merge pull request #131 from MislavPukljak/chrome-shutdown

wait till process is done
This commit is contained in:
David Heinemeier Hansson
2024-06-14 12:43:53 +02:00
committed by GitHub

View File

@@ -15,7 +15,10 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then
# Chrome theme update
if gum confirm "Do you want to update Chrome theme? If yes, Chrome will be restarted!"; then
pkill -f chrome
wait
while pgrep -f chrome > /dev/null; do
sleep 0.1
done
source $OMAKUB_PATH/themes/chrome/$THEME.sh
google-chrome > /dev/null 2>&1 &