<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<projects>
<project name="validator"
path="validator"
remote="https://gist.github.com/1061e514cf6eda8b4464a197778e8ebf.git"
runhook="validator/hook.sh"/>
</projects>
</manifest>
#!/bin/bash
pushd `dirname $0` > /dev/null
CURRENT_DIRECTORY=`pwd -P`
popd > /dev/null
pushd "$CURRENT_DIRECTORY/.." > /dev/null
EXPECTED=`pwd -P`
popd > /dev/null
echo "CURRENT_DIRECTORY: ${CURRENT_DIRECTORY}"
echo "EXPECTED: ${EXPECTED}"
echo "JIRI_ROOT: ${JIRI_ROOT}"
if [ "${JIRI_ROOT}" != "${EXPECTED}" ]; then
echo ""
echo "Expected \$JIRI_ROOT "${JIRI_ROOT}" to equal: ${EXPECTED}"
echo ""
exit 1
fi
An experiment to validate the jiri run hook environment.