diff options
author | Tim Steinbach <tim@nequissimus.com> | 2019-04-07 08:34:12 -0400 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2019-04-07 08:34:12 -0400 |
commit | 922c07d2d2a857a5cf1685a2178dd3fd122f8b46 (patch) | |
tree | 2b89e5f57f159f150cd2eac153a3cb05aa0a6753 /pkgs/os-specific/linux/kernel/update.sh | |
parent | ba24e89d44302718f22375a1be2485590359669d (diff) |
linux: Fix update script
The script was wrecking `modDirVersion`, putting them back and ensuring it will not break again.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/update.sh')
-rwxr-xr-x | pkgs/os-specific/linux/kernel/update.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/kernel/update.sh b/pkgs/os-specific/linux/kernel/update.sh index 99f5ac312177c..7a86b05dafcaa 100755 --- a/pkgs/os-specific/linux/kernel/update.sh +++ b/pkgs/os-specific/linux/kernel/update.sh @@ -48,10 +48,7 @@ ls $NIXPKGS/pkgs/os-specific/linux/kernel | while read FILE; do sed -i "s/sha256 = \".*\"/sha256 = \"$HASH\"/g" $NIXPKGS/pkgs/os-specific/linux/kernel/$FILE # Rewrite the expression - sed -i -e '/version = /d' -e '/modDirVersion = /d' $NIXPKGS/pkgs/os-specific/linux/kernel/$FILE - if grep -q '^[0-9]\+.[0-9]\+$' <<< "$V"; then - sed -i "\#buildLinux (args // rec {#a \ modDirVersion = \"${V}.0\";" $NIXPKGS/pkgs/os-specific/linux/kernel/$FILE - fi + sed -i -e '/version = /d' $NIXPKGS/pkgs/os-specific/linux/kernel/$FILE sed -i "\#buildLinux (args // rec {#a \ version = \"$V\";" $NIXPKGS/pkgs/os-specific/linux/kernel/$FILE # Commit the changes |