diff --git a/bin/omakub-theme b/bin/omakub-theme index 6c0f95c..5970c60 100644 --- a/bin/omakub-theme +++ b/bin/omakub-theme @@ -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 &