mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-13 22:10:25 +01:00
11 lines
314 B
Bash
11 lines
314 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Source: https://github.com/godotengine/godot/pull/68461#issuecomment-1328177902
|
||
|
|
||
|
while [ "$(printf "%.0f\n" $(top -n 1 -b | awk '/^%Cpu/{print $2}'))" -gt 10 ];
|
||
|
do
|
||
|
echo "$(top -n 1 -b | awk '/^%Cpu/{print $2}')";
|
||
|
done
|
||
|
echo "Finished importing. Killing godot editor process";
|
||
|
kill -9 $(pgrep -o godot)
|