Introduction
Introduction Statistics Contact Development Disclaimer Help
2ff: make it more portable - farbfeld - suckless image format with conversion t…
git clone git://git.suckless.org/farbfeld
Log
Files
Refs
README
LICENSE
---
commit 48c52a1f4889858ae3466f1987b522e426b6ddf3
parent 728997ff9662e6790165fd76296bef9ff8a09d93
Author: FRIGN <[email protected]>
Date: Mon, 19 Sep 2016 21:47:50 +0200
2ff: make it more portable
Thanks Roberto and Evan Gates!
Diffstat:
M 2ff | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/2ff b/2ff
@@ -7,8 +7,8 @@ fi
TMP=$(mktemp)
cat > "$TMP"
-if [ "$(head -c 8 "$TMP")" = "farbfeld" ]; then
- cat < "$TMP"
+if [ "$(dd if="$TMP" bs=1 count=8 2>/dev/null)" = "farbfeld" ]; then
+ cat "$TMP"
exit 0
fi
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.