summaryrefslogtreecommitdiff
path: root/2ff
diff options
context:
space:
mode:
authorFRIGN <dev@frign.de>2016-09-19 21:47:50 +0200
committerFRIGN <dev@frign.de>2016-09-19 21:47:50 +0200
commit48c52a1f4889858ae3466f1987b522e426b6ddf3 (patch)
tree6bba66dd44db2b111ca8bf0db40fba1e8f6ac433 /2ff
parent728997ff9662e6790165fd76296bef9ff8a09d93 (diff)
2ff: make it more portable
Thanks Roberto and Evan Gates!
Diffstat (limited to '2ff')
-rwxr-xr-x2ff4
1 files changed, 2 insertions, 2 deletions
diff --git a/2ff b/2ff
index 1b61cef..9a252a9 100755
--- 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