wait till process is done

This commit is contained in:
Mislav Pukljak
2024-06-14 12:28:18 +02:00
parent 571271c7c4
commit 2657732085

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 &