Skip to content

Commit 2742b76

Browse files
committed
Avoid vim [sic!] dependency
1 parent 4191756 commit 2742b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makecrx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ version_hex="0200 0000" # 2
135135
pub_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$pub" | awk '{print $5}')))
136136
sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}')))
137137
(
138-
echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | xxd -r -p
138+
echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | sed -e 's/\s//g' -e 's/\([0-9A-F]\{2\}\)/\\\\\\x\1/gI' | xargs printf
139139
cat "$pub" "$sig" "$zip"
140140
) > "$crx"
141141
#rm -rf pkg/crx

0 commit comments

Comments
 (0)