aboutsummaryrefslogtreecommitdiffstats
path: root/tools/apply-colormap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-03-06 02:17:01 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-03-06 02:17:01 +0100
commit77d4eb2fba4b9d3e11ed8272d5d9dc9da3ca7454 (patch)
treea3acb8345db50b3bdc4f2f6ab536266ff34a1a6a /tools/apply-colormap
parentc5a894e967f6736401fd0a932ecb2f39914899cc (diff)
tools/apply-colormap:serial_send(): Locally scope variable.
Diffstat (limited to 'tools/apply-colormap')
-rwxr-xr-xtools/apply-colormap2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/apply-colormap b/tools/apply-colormap
index fb497c9..56d90e0 100755
--- a/tools/apply-colormap
+++ b/tools/apply-colormap
@@ -79,7 +79,7 @@ palette() {
}
serial_send() {
- local fd old_IFS="$IFS"
+ local fd x old_IFS="$IFS"
exec {fd}<"$DEVICE_PATH"
"$@" >"$DEVICE_PATH"
while IFS= read -r -u "$fd" x; do