mirror of
https://github.com/lloeki/toolbelt.git
synced 2025-12-06 01:54:41 +01:00
really wait for Drive to close
This commit is contained in:
parent
a534392197
commit
385ed85dd3
1 changed files with 7 additions and 1 deletions
|
|
@ -70,8 +70,14 @@ def remove_persistent_assets
|
||||||
end
|
end
|
||||||
|
|
||||||
def restart
|
def restart
|
||||||
|
print "waiting for Google Drive to close..."
|
||||||
%x(killall "Google Drive")
|
%x(killall "Google Drive")
|
||||||
sleep 30
|
while system("ps -u $(whoami) | grep -v grep | grep 'Google Drive.app' > /dev/null") do
|
||||||
|
sleep 1
|
||||||
|
print "."
|
||||||
|
end
|
||||||
|
puts
|
||||||
|
puts "restarting Google Drive..."
|
||||||
%x(open -a "Google Drive")
|
%x(open -a "Google Drive")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue