3
0
Fork 0
forked from mirrors/nixpkgs

common-updater: Fix syntax

Missing space before closing ] in if statement caused syntax errors
This commit is contained in:
Tim Steinbach 2019-05-06 08:47:41 -04:00
parent e3bee64f78
commit c2c4cc683f
No known key found for this signature in database
GPG key ID: 6C654787275A64F1

View file

@ -161,7 +161,7 @@ if [ -z "$newHash" ]; then
die "Couldn't figure out new hash of '$attr.src'!"
fi
if [ -z "${ignoreSameHash}"] && [ "$oldVersion" != "$newVersion" ] && [ "$oldHash" = "$newHash" ]; then
if [ -z "${ignoreSameHash}" ] && [ "$oldVersion" != "$newVersion" ] && [ "$oldHash" = "$newHash" ]; then
mv "$nixFile.bak" "$nixFile"
die "Both the old and new source hashes of '$attr.src' were equivalent. Please fix the package's source URL to be dependent on '\${version}'!"
fi