From 2657732085da4f1e5ca734f6e9efdf869684753d Mon Sep 17 00:00:00 2001 From: Mislav Pukljak Date: Fri, 14 Jun 2024 12:28:18 +0200 Subject: [PATCH] wait till process is done --- bin/omakub-theme | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 &