We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04748a commit 9ebb235Copy full SHA for 9ebb235
javaUpdatesOne.sh
@@ -60,7 +60,7 @@ if [[ -n $latestJavaLTS ]]; then
60
mv "$f""01" "$f"
61
sed -E 's/command:\s*wget\s*https:\/\/.* &&/command: wget '"$targetImageUrl"' \&\&/g' "$f" > "$f""01"
62
63
- fileName=last_segment=$(echo "$targetImageUrl" | awk -F'/' '{print $NF}')
+ fileName=$(echo "$targetImageUrl" | awk -F'/' '{print $NF}')
64
sed -E 's/tar (-)?xvf .* &&/tar -xvf '"$fileName"' \&\&/g' "$f" > "$f""01"
65
66
sed -E 's/jdk[0-9]+/jdk'"$latestJavaLTS"'/g' "$f" > "$f""01"
0 commit comments