fix fetcher check

This commit is contained in:
Ryan Mulligan 2018-03-21 20:53:30 -07:00
parent 383c07a66a
commit e78e486036

2
up.sh
View File

@ -76,7 +76,7 @@ function error_cleanup {
} }
trap error_cleanup ERR trap error_cleanup ERR
(( $(grep -c "fetchurl" "$DERIVATION_FILE") + $(grep -c "fetchgit" "$DERIVATION_FILE") + $(grep -c "fetchFromGitHub" "$DERIVATION_FILE") == 1 )) || error_exit "More than one fetcher in $DERIVATION_FILE" (( $(grep -c "fetchurl {" "$DERIVATION_FILE") + $(grep -c "fetchgit {" "$DERIVATION_FILE") + $(grep -c "fetchFromGitHub {" "$DERIVATION_FILE") <= 1 )) || error_exit "More than one fetcher in $DERIVATION_FILE"
if grep -q "DO NOT EDIT" "$DERIVATION_FILE" if grep -q "DO NOT EDIT" "$DERIVATION_FILE"
then then