Skip to content

Commit 76cbc07

Browse 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 <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 89390a6 commit 76cbc07

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tools/update-cares.sh

+1-1
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

tools/update-llhttp.sh

+1-1
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

tools/update-nghttp2.sh

+1-1
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

tools/update-npm.sh

+1-1
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)