mirror of
https://github.com/termux/proot.git
synced 2024-11-11 13:49:26 +00:00
9 lines
283 B
Bash
9 lines
283 B
Bash
if [ -z `which strace` ] || [ -z `which true` ] || [ -z `which grep` ] || [ -z `which wc` ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
${PROOT} strace -e trace=execve true 2>&1 | grep '^execve.*= 0$'
|
|
|
|
RESULT=$(${PROOT} strace -e trace=execve true 2>&1 | grep '^execve' | wc -l)
|
|
test "${RESULT}" = "1"
|