0
1
mirror of https://github.com/termux/proot.git synced 2024-11-11 13:49:26 +00:00
proot/tests/test-pppppppp.sh
2016-08-21 07:42:00 -04:00

19 lines
313 B
Bash

if [ -z `which mcookie` ] || [ -z `which true` ] || [ -z `which mkdir` ]|| [ -z `which env` ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
mkdir -p ${TMP}/true
! ${PROOT} true
if [ $? -eq 0 ]; then
exit 125;
fi
env PATH=${TMP}:${PATH} ${PROOT} true
env PATH=${TMP}:${PATH} ${PROOT} env true
rm -fr ${TMP}