File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -157,23 +157,11 @@ else
157157fi
158158
159159log " Writing environment to $ENV_FILE "
160- current_path=" ${PATH:- } "
161- for required in /usr/bin /bin /usr/local/bin; do
162- case " :$current_path :" in
163- * :" $required " :* ) ;;
164- * ) current_path=" ${current_path: +$current_path : } $required " ;;
165- esac
166- done
167- if [ -n " $current_path " ]; then
168- path_suffix=" :$current_path "
169- else
170- path_suffix=" "
171- fi
172- cat > " $ENV_FILE " << ENV
160+ cat > " $ENV_FILE " << 'ENV '
173161export JAVA_HOME="$JAVA_HOME"
174162export JAVA17_HOME="$JAVA17_HOME"
175163export MAVEN_HOME="$MAVEN_HOME"
176- export PATH="\$ JAVA_HOME/bin:\$ MAVEN_HOME/bin$path_suffix "
164+ export PATH="\$JAVA_HOME/bin:\$MAVEN_HOME/bin:\$PATH "
177165ENV
178166
179167log " Workspace environment file metadata"
You can’t perform that action at this time.
0 commit comments