# Exit on first error
set -e
-function findup() {
+findup() {
local arg="$1"
if test -z "$arg"; then return 1; fi
cd $wd
}
-function error() {
+error() {
echo $1 > _error
exit 1
}
-function canttest() {
+canttest() {
[ -f _canttest ] || echo $1 > _canttest
exit 1
}