diff options
author | FRIGN <dev@frign.de> | 2016-09-19 21:47:50 +0200 |
---|---|---|
committer | FRIGN <dev@frign.de> | 2016-09-19 21:47:50 +0200 |
commit | 48c52a1f4889858ae3466f1987b522e426b6ddf3 (patch) | |
tree | 6bba66dd44db2b111ca8bf0db40fba1e8f6ac433 /2ff | |
parent | 728997ff9662e6790165fd76296bef9ff8a09d93 (diff) |
2ff: make it more portable
Thanks Roberto and Evan Gates!
Diffstat (limited to '2ff')
-rwxr-xr-x | 2ff | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |