From: Vladimír Čunát Date: Thu, 10 Nov 2016 10:37:48 +0000 (+0100) Subject: scripts: fix sed expression on non-GNU systems X-Git-Tag: v1.2.0-rc1~81^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64ba56e76a39caa235644d20d152200cf684eeec;p=thirdparty%2Fknot-resolver.git scripts: fix sed expression on non-GNU systems \t escape is a non-standard escape sequence. Thanks Marek for reporting! http://unix.stackexchange.com/a/145385/41413 --- diff --git a/scripts/embed-lua.sh b/scripts/embed-lua.sh index 403dfa2d0..80f6cba26 100755 --- a/scripts/embed-lua.sh +++ b/scripts/embed-lua.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -# clean unnecessary stuff from the lua file -alias strip="sed -e 's/^[\t ]*//g; s/ */ /g; /^--/d; /^$/d'" +# Clean unnecessary stuff from the lua file; note the significant tabulator. +alias strip="sed -e 's/^[ ]*//g; s/ */ /g; /^--/d; /^$/d'" if command -v xxd > /dev/null 2>&1; then strip < "$1" | xxd -i - else