mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
wait till process is done
This commit is contained in:
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user