Skip to content

Commit 80f8ff4

Browse files
committed
fix upload script
1 parent 005d2e8 commit 80f8ff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/playground/scripts/upload_bundle.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# The target folder on KeyCDN will be the compiler.js' version number.
55
# This script requires `curl` / `openssl` to be installed.
66

7-
SCRIPT_PATH=${BASH_SOURCE[0]}
8-
SCRIPT_DIR=$(dirname "$(dirname "$current_script_path")")
7+
SCRIPT_PATH="${BASH_SOURCE[0]}"
8+
SCRIPT_DIR="$(dirname "$(dirname "$SCRIPT_PATH")")"
99

1010
# Get the actual version from the compiled playground bundle
11-
VERSION=$(cd $SCRIPT_DIR; node -e 'require("./compiler.js"); console.log(rescript_compiler.make().rescript.version)')
11+
VERSION="$(node -e "console.log(require('$SCRIPT_DIR/compiler.js').rescript_compiler.make().rescript.version)")"
1212

1313
if [ -z "${KEYCDN_USER}" ]; then
1414
echo "KEYCDN_USER environment variable not set. Make sure to set the environment accordingly."

0 commit comments

Comments
 (0)