mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
linux-libre.updateScript: fix COMMIT option
Because bash was being run with -u, if COMMIT wasn't set in the environment the script would just crash here, rather than exiting successfully.
This commit is contained in:
parent
386dbd5aea
commit
be4d80d721
|
@ -20,7 +20,7 @@ sha256="$(QUIET=1 nix-prefetch-svn "$svn_url" "$rev" | tail -1)"
|
|||
sed -i -e "s/rev = \".*\"/rev = \"$rev\"/" \
|
||||
-e "s/sha256 = \".*\"/sha256 = \"$sha256\"/" "$path"
|
||||
|
||||
if [ -n "$COMMIT" ]; then
|
||||
if [ -n "${COMMIT-}" ]; then
|
||||
git commit -qm "linux_latest-libre: $old_rev -> $rev" "$path"
|
||||
echo "Updated linux_latest-libre $old_rev -> $rev"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue