We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01230b7 commit 53ee219Copy full SHA for 53ee219
scripts/setup-workspace.sh
@@ -11,14 +11,15 @@ log() {
11
echo "[setup-workspace] $1"
12
}
13
14
-# Normalize TMPDIR so it has no trailing slash
+# Normalize TMPDIR and compose paths without duplicate slashes
15
TMPDIR="${TMPDIR:-/tmp}"
16
TMPDIR="${TMPDIR%/}"
17
18
# Place downloaded tools outside the repository so it isn't filled with binaries
19
-DOWNLOAD_DIR="$TMPDIR/codenameone-tools"
20
-mkdir -p "$DOWNLOAD_DIR"
+# Strip any trailing slash again at the join to be extra safe.
+DOWNLOAD_DIR="${TMPDIR%/}/codenameone-tools"
21
ENV_DIR="$DOWNLOAD_DIR/tools"
22
+mkdir -p "$DOWNLOAD_DIR"
23
mkdir -p "$ENV_DIR"
24
mkdir -p ../cn1-binaries
25
CN1_BINARIES="$(cd ../cn1-binaries && pwd -P)"
0 commit comments