From 080e2231595b41b8cf5a185d0104b018cd945f3c Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Wed, 14 Feb 2024 11:46:31 -0800 Subject: [PATCH 1/2] --- locate_trunk.sh | 2 +- package-lock.json | 13 ++++++++++++- package.json | 3 ++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/locate_trunk.sh b/locate_trunk.sh index b9f84a2e..9c178f1e 100755 --- a/locate_trunk.sh +++ b/locate_trunk.sh @@ -19,7 +19,7 @@ if [[ -z ${trunk_path} ]]; then trunk_path=./trunk else curl -fsSL https://trunk.io/releases/trunk -o "${tmpdir}/trunk" - chmod u+x "${tmpdir}/trunk" + chmod 755 ${tmpdir}/trunk trunk_path="${tmpdir}/trunk" fi fi diff --git a/package-lock.json b/package-lock.json index 795f7870..51e4172e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,8 @@ "packages": { "": { "dependencies": { - "chai": "^4.3.7" + "chai": "^4.3.7", + "ip": "^2.0.0" }, "engines": { "node": "20.8.1" @@ -66,6 +67,11 @@ "node": "*" } }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, "node_modules/loupe": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", @@ -132,6 +138,11 @@ "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==" }, + "ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, "loupe": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", diff --git a/package.json b/package.json index 661ed86f..567506d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { - "chai": "^4.3.7" + "chai": "^4.3.7", + "ip": "^2.0.0" }, "engines": { "node": "20.8.1" From 429541eb2a85e4b2f44b6b580261218738939b05 Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Wed, 14 Feb 2024 11:47:27 -0800 Subject: [PATCH 2/2] --- locate_trunk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locate_trunk.sh b/locate_trunk.sh index 9c178f1e..b9f84a2e 100755 --- a/locate_trunk.sh +++ b/locate_trunk.sh @@ -19,7 +19,7 @@ if [[ -z ${trunk_path} ]]; then trunk_path=./trunk else curl -fsSL https://trunk.io/releases/trunk -o "${tmpdir}/trunk" - chmod 755 ${tmpdir}/trunk + chmod u+x "${tmpdir}/trunk" trunk_path="${tmpdir}/trunk" fi fi