diff --git a/sbin/build.sh b/sbin/build.sh index f76a0b91a..e0bd66160 100755 --- a/sbin/build.sh +++ b/sbin/build.sh @@ -2094,6 +2094,7 @@ getTargetFileNameForComponent() { echo "${target_file_name}" | sed "s/-jdk/-${component}/" else # if no pattern is found, append the component name right before the extension. + # Stopped using -r here and split this in 2 as -r not a standard sed argument echo "${target_file_name}" | sed \ -e "s/\(.*\)\(\.tar\.gz\)/\1-$component\2/" \ -e "s/\(.*\)\(\.zip\)/\1-${component}\2/"