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

8 lines
215 B
Bash

if [ ! -x ${ROOTFS}/bin/readlink ] || [ -z `which realpath` ] || [ -z `which grep` ]; then
exit 125;
fi
RESULT=$(realpath ${ROOTFS})
${PROOT} -b /proc -r ${ROOTFS} readlink /proc/self/root | grep ^${RESULT}$