Newer
Older
dub_jkp / test / 0-init-fail / 0-init-fail.sh
@Colin Grogan Colin Grogan on 10 Dec 2014 299 bytes Fixed bug in 0-init-fail testcase
#!/bin/bash

packname="0-init-fail-pack"
deps="logger PACKAGE_DONT_EXIST" # would be very unlucky if it does exist...

$DUB init $packname $deps

function cleanup {
    rm -rf $packname
}

if [ -e $packname/dub.json ]; then # package is there, it should have failed
    cleanup
    exit 1
fi
exit 0