Skip to content

Commit 2d73c56

Browse files
committed
removes and and
1 parent cdba453 commit 2d73c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javaUpdatesOne.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ if [[ -n $latestJavaLTS ]]; then
6363
sed -E 's/command:\s*wget\s*https:\/\/.*;\\/command: wget '"$targetImageUrl"';\\/g' "$f" > "$f""01"
6464
mv "$f""01" "$f"
6565
fileName=$(echo "$targetImageUrl" | awk -F'/' '{print $NF}')
66-
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"
6767
mv "$f""01" "$f"
68-
sed -E 's/tar (-)?xvf .*;\\/tar -xvf '"$fileName"';\\/g' "$f" > "$f""01"
68+
sed -E 's/tar (-)?xvf .*;\\/tar xvf '"$fileName"';\\/g' "$f" > "$f""01"
6969
mv "$f""01" "$f"
7070
sed -E 's/jdk[0-9]+/jdk'"$latestJavaLTS"'/g' "$f" > "$f""01"
7171
mv "$f""01" "$f"

0 commit comments

Comments
 (0)