linux-libre.updateScript: fix git commit

With nothing staged and no paths given, previously this wouldn't
actually do anything.
This commit is contained in:
Alyssa Ross 2020-01-13 13:45:40 +00:00
parent 345f6712e3
commit 1d51514ab2

View File

@ -27,6 +27,7 @@ sed -i -e "s/rev = \".*\"/rev = \"$rev\"/" \
-e "s/sha256 = \".*\"/sha256 = \"$sha256\"/" "$path"
if [ -n "${COMMIT-}" ]; then
git commit -qm "linux_latest-libre: $old_rev -> $rev" "$path"
git commit -qm "linux_latest-libre: $old_rev -> $rev" "$path" \
$nixpkgs/pkgs/os-specific/linux/kernel/linux-libre.nix
echo "Updated linux_latest-libre $old_rev -> $rev"
fi