mirror of https://github.com/sipwise/ngcpcfg.git
It was impossible to set value like '10G' previosuly: >> ngcpcfg set /etc/ngcp-config/config.yml bootenv.netscript.fallbackfssize=10M > Bareword found where operator expected at /tmp/tmp.px3MpkUFZS line 28, near "10M" > (Missing operator before M?) > Bareword found where operator expected at /tmp/tmp.px3MpkUFZS line 30, near "10M" > (Missing operator before M?) > Bareword found where operator expected at /tmp/tmp.px3MpkUFZS line 31, near "10M" > (Missing operator before M?) > Bareword found where operator expected at /tmp/tmp.px3MpkUFZS line 33, near "10M" > (Missing operator before M?) > Bareword found where operator expected at /tmp/tmp.px3MpkUFZS line 34, near "10M" > (Missing operator before M?) > syntax error at /tmp/tmp.px3MpkUFZS line 28, near "10M" > syntax error at /tmp/tmp.px3MpkUFZS line 30, near "10M" > syntax error at /tmp/tmp.px3MpkUFZS line 39, near "}" > Execution of /tmp/tmp.px3MpkUFZS aborted due to compilation errors. The 'case' statement doesn't support regular expresions in Bash, let's rewrite them into linear check. Change-Id: I29ced837fca0abdc3cbe1ea18c614c4c1dd6780cchanges/98/23698/5
parent
dfb0053b37
commit
203cdf9908
Loading…
Reference in new issue