Skip to content

Commit

Permalink
Use echo to not exit the pod with error (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored May 3, 2023
1 parent d3af9aa commit 5961d25
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const getVersion = async (
command: string,
): Promise<SubstrateCliArgsVersion> => {
const client = getClient() as KubeClient;
const fullCmd = `${command} --help | grep ws-port`;
// use echo to not finish the pod with error status.
const fullCmd = `${command} --help | grep ws-port || echo "V1"`;
const node = await createTempNodeDef(
"temp",
image,
Expand Down

0 comments on commit 5961d25

Please sign in to comment.