1
0
mirror of https://github.com/proot-me/proot.git synced 2024-11-27 10:49:00 +00:00
proot/test/test-rrrrrrrr.sh
2019-12-19 15:37:02 -05: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}$