wait for unity processes to die
This commit is contained in:
parent
a160eddf59
commit
7f7bc2123c
|
@ -7,11 +7,12 @@ editorlogpath="$HOME/Library/Logs/Unity/Editor.log"
|
||||||
editorpath="/Applications/Unity/Hub/Editor/$unityversion/Unity.app"
|
editorpath="/Applications/Unity/Hub/Editor/$unityversion/Unity.app"
|
||||||
|
|
||||||
# find and kill existing unity instances
|
# find and kill existing unity instances
|
||||||
if pgrep -x Unity
|
echo "terminating existing unity processes..."
|
||||||
then
|
while pgrep -x Unity > /dev/null
|
||||||
echo "terminating existing unity processes..."
|
do
|
||||||
kill $(pgrep Unity)
|
kill $(pgrep Unity)
|
||||||
fi
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
# remove previous Editor.log
|
# remove previous Editor.log
|
||||||
echo "removing previous editor log..."
|
echo "removing previous editor log..."
|
||||||
|
|
Loading…
Reference in New Issue