mirror of
https://github.com/akatrevorjay/edid-generator.git
synced 2026-01-15 23:50:28 +01:00
Ensure globbing is not running away wildly
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#!/bin/zsh
|
||||
emulate -L zsh
|
||||
|
||||
setopt errexit errreturn
|
||||
#setopt xtrace
|
||||
|
||||
@@ -43,7 +45,7 @@ template-S() {
|
||||
XBLANK "$((htotal - hdisp))"
|
||||
XOFFSET "$((hsyncstart - hdisp))"
|
||||
XPULSE "$((hsyncend - hsyncstart))"
|
||||
|
||||
|
||||
YPIX "$vdisp"
|
||||
YBLANK "$((vtotal - vdisp))"
|
||||
YOFFSET "(63+$((vsyncstart - vdisp)))"
|
||||
@@ -59,7 +61,7 @@ template-S() {
|
||||
VSYNC_POL "$vsync_polarity"
|
||||
)
|
||||
|
||||
local -a lines=("/* $name: $REPLY */")
|
||||
local -a lines=("/\* $name: $REPLY \*/")
|
||||
local k
|
||||
for k in ${(k)defines}; do
|
||||
lines+=("#define $k ${defines[$k]}")
|
||||
|
||||
Reference in New Issue
Block a user