summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-05-20 19:00:41 -0400
committerFreya Murphy <freya@freyacat.org>2024-05-20 19:00:41 -0400
commitd51b95a12cd6c7501452cfdd59f27fe3d31be613 (patch)
tree849c6192705979b6ed7a22bbbc9704429f05787d /src/web
parentfix simple php errors (diff)
downloadxssbook2-d51b95a12cd6c7501452cfdd59f27fe3d31be613.tar.gz
xssbook2-d51b95a12cd6c7501452cfdd59f27fe3d31be613.tar.bz2
xssbook2-d51b95a12cd6c7501452cfdd59f27fe3d31be613.zip
a
Diffstat (limited to 'src/web')
-rwxr-xr-xsrc/web/lang/_bin/transpile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/lang/_bin/transpile.sh b/src/web/lang/_bin/transpile.sh
index e6e826c..36cd226 100755
--- a/src/web/lang/_bin/transpile.sh
+++ b/src/web/lang/_bin/transpile.sh
@@ -24,7 +24,7 @@ transpile() {
out="$2"
printf "" > "$out"
printf "<?php /* Copyright (c) 2024 Freya Murphy */\n\n" > "$out";
- grep "\$lang" < "$file" | xargs -d'\n' -I{} bash -c 'handle_line "$@"' _ {} >> "$out"
+ grep "\$lang" < "$file" | xargs -n1 -I{} bash -c 'handle_line "$@"' _ {} >> "$out"
}
transpile "$1" "$2"