0
1
mirror of https://github.com/termux/proot.git synced 2024-09-22 08:31:06 +00:00
proot/tests/test-de756935.sh
2016-08-21 07:42:00 -04:00

13 lines
266 B
Bash

if [ -z `which mcookie` ] || [ -z `which mkdir` ] || [ -z `which bash` ] || [ -z `which grep` ] || [ -z `which rm` ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
mkdir -p ${TMP}
cd ${TMP}
${PROOT} -b ${PWD}:/foo -w /foo bash -c 'pwd' | grep '^/foo$'
rm -fr ${TMP}