12 lines
290 B
Bash
12 lines
290 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ ! "$1" ]; then
|
||
|
echo "Enter PATH to krisp's Node file."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
NODE_PATH="$1"
|
||
|
PATCHED_NODE_PATH="$(echo $NODE_PATH | cut -d '.' -f 1)_patched.node"
|
||
|
|
||
|
xxd -p -c 0 "$NODE_PATH" | sed -E \'s/(4889dfe8........85c0)745c/\19090/' | xxd -p -r -c 0 > "$PATCHED_NODE_PATH"
|