Skip to content

Commit

Permalink
Add patching script for busybox.
Browse files Browse the repository at this point in the history
  • Loading branch information
step- committed Dec 14, 2020
1 parent a1712b3 commit f089b1d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tool/patch-for-busybox-awk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

set -e # KEEP

J=${1:-JSON.awk}

cp "$J" "$J.$(date +'%Y%m%d%H%M%S').bak"

sed -i -e 's/\\000/\\001/g' -e '/^# Version:/ s/$/ PATCHED for busybox awk/' $J

if ! grep -qFm1 '\000' "$J"; then
echo "$J is patched for busybox awk"
fi

0 comments on commit f089b1d

Please sign in to comment.