proot/test/test-carequot.sh
2019-12-19 15:37:02 -05:00

18 lines
335 B
Bash

if [ -z `which env` ] || [ -z `which rm` ] || [ -z `which mcookie` ] || [ -z `which true` ]; then
exit 125;
fi
if [ ! -e $CARE ]; then
exit 125;
fi
unset PROOT
TMP=/tmp/$(mcookie)
env 'COMP_WORDBREAKS=
"'\''><;|&(:' ${CARE} -o ${TMP}.raw true
cd /tmp; ${CARE} -x ${TMP}.raw
${TMP}/re-execute.sh
rm -fr ${TMP}.raw ${TMP}