Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 76cbc07

Browse filesBrowse files
lpincaRafaelGSS
authored andcommitted
tools: allow scripts to run from anywhere
Make the `update-cares.sh`, `update-llhttp.sh`, `update-nghttp2.sh`, and `update-npm.sh` scripts work even if they are run outside of the `tools` directory. PR-URL: #45361 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 89390a6 commit 76cbc07
Copy full SHA for 76cbc07

File tree

Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎tools/update-cares.sh‎

Copy file name to clipboardExpand all lines: tools/update-cares.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
# Shell script to update c-ares in the source tree to a specific version
44

5-
BASE_DIR="$( pwd )"
5+
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
66
DEPS_DIR="$BASE_DIR/deps"
77
ARES_VERSION=$1
88

Collapse file

‎tools/update-llhttp.sh‎

Copy file name to clipboardExpand all lines: tools/update-llhttp.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
# Shell script to update llhttp in the source tree to specific version
55

6-
BASE_DIR="$( pwd )"
6+
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
77
DEPS_DIR="${BASE_DIR}/deps"
88
LLHTTP_VERSION="$1"
99

Collapse file

‎tools/update-nghttp2.sh‎

Copy file name to clipboardExpand all lines: tools/update-nghttp2.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
# Shell script to update nghttp2 in the source tree to specific version
44

5-
BASE_DIR="$( pwd )"
5+
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
66
DEPS_DIR="$BASE_DIR/deps"
77
NGHTTP2_VERSION=$1
88

Collapse file

‎tools/update-npm.sh‎

Copy file name to clipboardExpand all lines: tools/update-npm.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
# Shell script to update npm in the source tree to a specific version
44

5-
BASE_DIR="$( pwd )"
5+
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
66
DEPS_DIR="$BASE_DIR/deps"
77
NPM_VERSION=$1
88

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.