Skip to content

Commit 6f1a7cf

Browse files
committed
cli: escape tr arg properly
1 parent f139764 commit 6f1a7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ async function checkSolanaBinary(binary: string, wormhole: string, providedProgr
15051505
const wormholeHex = new PublicKey(wormhole).toBuffer().toString("hex");
15061506
const providedProgramIdHex = new PublicKey(providedProgramId).toBuffer().toString("hex");
15071507

1508-
execSync(`xxd -p ${binary} | tr -d '\\n' | grep ${wormholeHex}`);
1509-
execSync(`xxd -p ${binary} | tr -d '\\n' | grep ${providedProgramIdHex}`);
1508+
execSync(`xxd -p ${binary} | tr -d '\n' | grep ${wormholeHex}`);
1509+
execSync(`xxd -p ${binary} | tr -d '\n' | grep ${providedProgramIdHex}`);
15101510

15111511
}
15121512

0 commit comments

Comments
 (0)