diff options
author | Shea Levy <shea@shealevy.com> | 2012-07-29 03:09:44 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2012-07-29 03:09:44 -0400 |
commit | a36456ca255883520fd07fa5a0b8a23bd08196a3 (patch) | |
tree | 86789094d8f0be115a9c61bcc7d0f2729e5c2fd1 /pkgs/os-specific/linux/kernel/manual-config.nix | |
parent | 5a9d9f4f457e98df5a017a295f7c4e9c1c5f5128 (diff) |
linux/kernel-manual-config: Simplify the lines.nix runCommand now that I know how to escape properly
Diffstat (limited to 'pkgs/os-specific/linux/kernel/manual-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/manual-config.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index 83740b6285e76..87550401f78ac 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -14,9 +14,9 @@ let lines = import "${runCommand "lines.nix" {} '' echo "[" >> $out while read line; do - if [ -n "$line" ] && [ `expr index "$line" "#"` -ne 1 ]; then - echo "${"''"}" >> $out - echo $(echo $line | sed "s@${"''"}@\$\{\"${"''"}\"}@g")"${"''"}" >> $out + if [ -n "$line" ] && [ "#" != ''${line:0:1} ]; then + echo "'''" >> $out + echo $(echo $line | sed "s/'''/''''/g")"'''" >> $out fi done < ${config} echo "]" >> $out |