Skip to content

Commit

Permalink
fix path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 14, 2023
1 parent 5f12dc6 commit 1ac8e2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .evergreen/github_app/create_or_modify_comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
set -o errexit # Exit the script with error if any of the commands fail
set -x

DIR=$(dirname $0)
DIR="$(dirname "${BASH_SOURCE[0]}")"
pushd $DIR

# Bootstrap the secrets.
bash $DIR/../auth_aws/setup_secrets.sh drivers/comment-bot
source secrets-export.sh

# Install node and activate it.
set -x
bash $DIR/../install-node.sh
source $DIR/../init-node-and-npm-env.sh

# Install and run the app.
set -x
npm install
node create_or_modify_comment.mjs "$@"
popd
2 changes: 1 addition & 1 deletion .evergreen/init-node-and-npm-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## access to `npm`, `node`, or need to install something globally from
## npm.

DIR=$(dirname $0)
DIR="$(dirname "${BASH_SOURCE[0]}")"
NODE_ARTIFACTS_PATH="$DIR/node-artifacts"
if [[ "$OS" == "Windows_NT" ]]; then
NODE_ARTIFACTS_PATH=$(cygpath --unix "$NODE_ARTIFACTS_PATH")
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/install-node.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o errexit # Exit the script with error if any of the commands fail

DIR=$(dirname $0)
DIR="$(dirname "${BASH_SOURCE[0]}")"
pushd $DIR

NODE_LTS_VERSION=${NODE_LTS_VERSION:-18}
Expand Down

0 comments on commit 1ac8e2c

Please sign in to comment.