diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-01-13 13:42:13 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-01-13 16:44:48 +0000 |
commit | be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c (patch) | |
tree | a1bb1f075b76e0b1f9193098256525a32a8afbf1 /pkgs/os-specific | |
parent | 386dbd5aea22f34f4902c7fce541586e5236b0bb (diff) | |
download | nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar.gz nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar.bz2 nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar.lz nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar.xz nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.tar.zst nixpkgs-be4d80d72189c9d59f1ceb7a6d2d60fc973bdf4c.zip |
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.
Diffstat (limited to 'pkgs/os-specific')
-rwxr-xr-x | pkgs/os-specific/linux/kernel/update-libre.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/update-libre.sh b/pkgs/os-specific/linux/kernel/update-libre.sh index 3b8a00edcda..e056577477c 100755 --- a/pkgs/os-specific/linux/kernel/update-libre.sh +++ b/pkgs/os-specific/linux/kernel/update-libre.sh @@ -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 |