mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-14 22:30:26 +01:00
10 lines
314 B
Bash
Executable file
10 lines
314 B
Bash
Executable file
#!/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)
|