mirror of
https://github.com/termux/proot.git
synced 2024-09-22 08:31:06 +00:00
13 lines
269 B
Bash
13 lines
269 B
Bash
if [ -z `which mcookie` ] || [ -z `which mkdir` ] || [ -z `which test` ] || [ -z `which grep` ] || [ -z `which rm` ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
TMP=/tmp/$(mcookie)
|
|
mkdir ${TMP}
|
|
|
|
${PROOT} -b /bin/true:${TMP}/true /bin/true
|
|
! test -e ${TMP}/true
|
|
[ $? -eq 0 ]
|
|
|
|
rm -fr ${TMP}
|