This commit is contained in:
Eelco Dolstra 2020-02-10 16:32:59 +01:00
parent 64e5f4d53b
commit fb05afd78d

View File

@ -6,7 +6,7 @@ case "$1" in
exit 1
;;
--hash|--revision)
if ! [[ @revision@ =~ /[0-9a-f]+/ ]]; then
if ! [[ @revision@ =~ ^[0-9a-f]+$ ]]; then
echo "$0: Nixpkgs commit hash is unknown"
exit 1
fi