File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22# Build Codename One Android port using JDK 11 for Maven and JDK 17 for compilation
33set -euo pipefail
44
5- # Normalize TMPDIR so it has no trailing slash
5+ # Normalize TMPDIR and compose paths without duplicate slashes
66TMPDIR=" ${TMPDIR:-/ tmp} "
77TMPDIR=" ${TMPDIR%/ } "
8- DOWNLOAD_DIR=" $TMPDIR /codenameone-tools"
8+
9+ # Place downloaded tools outside the repository so it isn't filled with binaries
10+ # Strip any trailing slash again at the join to be extra safe.
11+ DOWNLOAD_DIR=" ${TMPDIR%/ } /codenameone-tools"
912ENV_DIR=" $DOWNLOAD_DIR /tools"
1013
1114if [ -f " $ENV_DIR /env.sh" ]; then
Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ if ! command -v xcodebuild >/dev/null; then
1010 exit 1
1111fi
1212
13- # Normalize TMPDIR so it has no trailing slash
13+ # Normalize TMPDIR and compose paths without duplicate slashes
1414TMPDIR=" ${TMPDIR:-/ tmp} "
1515TMPDIR=" ${TMPDIR%/ } "
16- DOWNLOAD_DIR=" $TMPDIR /codenameone-tools"
16+
17+ # Place downloaded tools outside the repository so it isn't filled with binaries
18+ # Strip any trailing slash again at the join to be extra safe.
19+ DOWNLOAD_DIR=" ${TMPDIR%/ } /codenameone-tools"
1720ENV_DIR=" $DOWNLOAD_DIR /tools"
1821
1922if [ -f " $ENV_DIR /env.sh" ]; then
You can’t perform that action at this time.
0 commit comments