Skip to content

Commit

Permalink
Improve the kadena-cli wrapper with exec
Browse files Browse the repository at this point in the history
  • Loading branch information
enobayram committed May 14, 2024
1 parent 82c6377 commit cf174ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/kadena-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ let
mkdir -p $out/bin
cat - > $out/bin/kadena <<EOF
#!${pkgs.runtimeShell}
${nodejs-slim}/bin/node $out/lib/cli.mjs "\$@"
#!${pkgs.runtimeShell} -e
exec -a "\$0" "${nodejs-slim}/bin/node" "$out/lib/cli.mjs" "\$@"
EOF
chmod +x $out/bin/kadena
'';
Expand Down

0 comments on commit cf174ab

Please sign in to comment.