Skip to content

Commit cdba453

Browse files
committed
removes and and
1 parent b42ffd9 commit cdba453

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

javaUpdatesOne.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,23 @@ if [[ -n $latestJavaLTS ]]; then
5858
targetImageUrl=${targetImageUrl//\//\\/}
5959
sed -E 's/-\s*image:\s*maven.*/- image: '"$targetImage"'/g' "$f" > "$f""01"
6060
mv "$f""01" "$f"
61-
sed -E 's/command:\s*wget\s*https:\/\/.* &&/command: wget '"$targetImageUrl"' \&\&/g' "$f" > "$f""01"
61+
sed -E 's/command:\s*wget\s*https:\/\/.* &&/command: wget '"$targetImageUrl"';\\/g' "$f" > "$f""01"
62+
mv "$f""01" "$f"
63+
sed -E 's/command:\s*wget\s*https:\/\/.*;\\/command: wget '"$targetImageUrl"';\\/g' "$f" > "$f""01"
6264
mv "$f""01" "$f"
6365
fileName=$(echo "$targetImageUrl" | awk -F'/' '{print $NF}')
64-
sed -E 's/tar (-)?xvf .* &&/tar -xvf '"$fileName"' \&\&/g' "$f" > "$f""01"
66+
sed -E 's/tar (-)?xvf .* &&/tar -xvf '"$fileName"';\\/g' "$f" > "$f""01"
67+
mv "$f""01" "$f"
68+
sed -E 's/tar (-)?xvf .*;\\/tar -xvf '"$fileName"';\\/g' "$f" > "$f""01"
6569
mv "$f""01" "$f"
6670
sed -E 's/jdk[0-9]+/jdk'"$latestJavaLTS"'/g' "$f" > "$f""01"
6771
mv "$f""01" "$f"
6872
sed -E 's/jdk-[0-9]+/jdk-'"$latestJavaLTS"'/g' "$f" > "$f""01"
6973
mv "$f""01" "$f"
7074
sed -E 's/Install SDK [0-9]*/Install SDK '"$latestJavaLTS"'/g' "$f" > "$f""01"
7175
mv "$f""01" "$f"
76+
sed -E 's/ &&/;\\/g' "$f" > "$f""01"
77+
mv "$f""01" "$f"
7278
fi
7379

7480
else

0 commit comments

Comments
 (0)