Skip to content

Commit

Permalink
no echoerr
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jun 5, 2023
1 parent e579503 commit d1ed4ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions patches/oclif@3.9.0.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/lib/tarballs/bin.js b/lib/tarballs/bin.js
index 8301c7be4c3101de9caf1c1b127cf1f940a1706c..34869c8df738534fa90bc0161d3db31915ed919d 100644
index 8301c7be4c3101de9caf1c1b127cf1f940a1706c..960b0eda71f63f89dab6e6827c96a26bb95a4eda 100644
--- a/lib/tarballs/bin.js
+++ b/lib/tarballs/bin.js
@@ -7,38 +7,27 @@ const node_child_process_1 = require("node:child_process");
@@ -7,38 +7,26 @@ const node_child_process_1 = require("node:child_process");
const node_util_1 = require("node:util");
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
async function writeBinScripts({ config, baseWorkspace, nodeVersion }) {
Expand Down Expand Up @@ -48,15 +48,15 @@ index 8301c7be4c3101de9caf1c1b127cf1f940a1706c..34869c8df738534fa90bc0161d3db319
+ bin,
+ `#!/usr/bin/env sh
set -e
echoerr() { echo "$@" 1>&2; }
-echoerr() { echo "$@" 1>&2; }

get_script_dir () {
- SOURCE="\${BASH_SOURCE[0]}"
+ SOURCE="\$0"
# While \$SOURCE is a symlink, resolve it
while [ -h "\$SOURCE" ]; do
DIR="\$( cd -P "\$( dirname "\$SOURCE" )" && pwd )"
@@ -50,42 +39,32 @@ get_script_dir () {
@@ -50,42 +38,32 @@ get_script_dir () {
echo "\$DIR"
}
DIR=\$(get_script_dir)
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1ed4ae

Please sign in to comment.