Skip to content

Commit

Permalink
scripts: fixed broken Lua with non-GNU sed
Browse files Browse the repository at this point in the history
  • Loading branch information
vavrusa committed Nov 9, 2016
1 parent 9a5fbb3 commit a466445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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'"
alias strip="sed -e 's/^[\t ]+//g; s/ */ /g; /^--/d; /^$/d'"
if command -v xxd > /dev/null 2>&1; then
strip < "$1" | xxd -i -
else
Expand Down

0 comments on commit a466445

Please sign in to comment.