Newer
Older
dub_jkp / test / 0-init-simple-json.sh
@Martin Nowak Martin Nowak on 4 Jul 2017 285 bytes replace all usages of `exit`
#!/usr/bin/env bash

. $(dirname "${BASH_SOURCE[0]}")/common.sh
packname="0-init-simple-pack"

$DUB init -n $packname -f json

function cleanup {
    rm -rf $packname
}

if [ ! -e $packname/dub.json ]; then
    cleanup
    die $LINENO 'No dub.json file has been generated.'
fi
cleanup