Newer
Older
dub_jkp / test / issue672-upgrade-optional.sh
@Martin Nowak Martin Nowak on 3 Jul 2017 337 bytes unify flags and error handling
#!/usr/bin/env bash

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue672-upgrade-optional
rm -rf b/.dub
echo "{\"fileVersion\": 1,\"versions\": {\"dub\": \"1.0.0\"}}" > dub.selections.json
${DUB} upgrade || exit 1

if ! grep -c -e "\"dub\": \"1.1.0\"" dub.selections.json; then
	echo "Dependency not upgraded."
	exit 1
fi