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
|
#!/bin/zsh
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
setopt errexit errreturn
|
setopt errexit errreturn
|
||||||
#setopt xtrace
|
#setopt xtrace
|
||||||
|
|
||||||
@@ -43,7 +45,7 @@ template-S() {
|
|||||||
XBLANK "$((htotal - hdisp))"
|
XBLANK "$((htotal - hdisp))"
|
||||||
XOFFSET "$((hsyncstart - hdisp))"
|
XOFFSET "$((hsyncstart - hdisp))"
|
||||||
XPULSE "$((hsyncend - hsyncstart))"
|
XPULSE "$((hsyncend - hsyncstart))"
|
||||||
|
|
||||||
YPIX "$vdisp"
|
YPIX "$vdisp"
|
||||||
YBLANK "$((vtotal - vdisp))"
|
YBLANK "$((vtotal - vdisp))"
|
||||||
YOFFSET "(63+$((vsyncstart - vdisp)))"
|
YOFFSET "(63+$((vsyncstart - vdisp)))"
|
||||||
@@ -59,7 +61,7 @@ template-S() {
|
|||||||
VSYNC_POL "$vsync_polarity"
|
VSYNC_POL "$vsync_polarity"
|
||||||
)
|
)
|
||||||
|
|
||||||
local -a lines=("/* $name: $REPLY */")
|
local -a lines=("/\* $name: $REPLY \*/")
|
||||||
local k
|
local k
|
||||||
for k in ${(k)defines}; do
|
for k in ${(k)defines}; do
|
||||||
lines+=("#define $k ${defines[$k]}")
|
lines+=("#define $k ${defines[$k]}")
|
||||||
|
|||||||
Reference in New Issue
Block a user