mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
fix fetcher check
This commit is contained in:
parent
383c07a66a
commit
e78e486036
2
up.sh
2
up.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user