1
0
mirror of https://github.com/proot-me/proot.git synced 2024-11-23 18:16:18 +00:00
proot/test/test-6fb08ce1.sh
2019-12-19 15:37:02 -05:00

11 lines
223 B
Bash

if [ -z `which mcookie` ] || [ -z `which grep` ] || [ -z `which rm` ]; then
exit 125;
fi
TMP=/tmp/$(mcookie)
echo "OK" > ${TMP}
${PROOT} -b ${TMP}:/etc/fstab -b /dev/null -b /etc cat /etc/fstab | grep ^OK$
rm ${TMP}