Browse Source

Better opt_set comment of old val

Scott Lahteine 3 years ago
parent
commit
6f494e9bed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/bin/opt_set

+ 1
- 1
buildroot/bin/opt_set View File

8
 while [[ $# > 1 ]]; do
8
 while [[ $# > 1 ]]; do
9
   DID=0
9
   DID=0
10
   for FN in Configuration Configuration_adv; do
10
   for FN in Configuration Configuration_adv; do
11
-    "${SED}" -i "/^\(\s*\)\/*\s*\(#define\s\+${1}\b\)\(.*\)$/{s//\1\2 ${2} \/\/ \3/;h};\${x;/./{x;q0};x;q9}" Marlin/$FN.h && DID=1
11
+    "${SED}" -i "/^\(\s*\)\/*\s*\(#define\s\+${1}\b\) *\(.*\)$/{s//\1\2 ${2} \/\/ \3/;h};\${x;/./{x;q0};x;q9}" Marlin/$FN.h && DID=1
12
   done
12
   done
13
   ((DID)) ||
13
   ((DID)) ||
14
     eval "echo '#define ${1} ${2}' >>Marlin/Configuration.h" ||
14
     eval "echo '#define ${1} ${2}' >>Marlin/Configuration.h" ||

Loading…
Cancel
Save