#!/usr/bin/env bash
set -ev

not () { "$@" && exit 1 || :; }

rm -rf temp1

mkdir temp1
darcs init
test -d _darcs
not darcs init
cd ..
rm -rf temp1

# Some tests for the repodir flag
mkdir temp1
darcs init --repodir temp1
test -d temp1/_darcs
rm -rf temp1
