Explorar o código

Remove superfluous variable declaration

Joshua Boniface %!s(int64=6) %!d(string=hai) anos
pai
achega
891a03c038
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      bump_version

+ 0 - 1
bump_version

@@ -66,7 +66,6 @@ old_version="$(
 )"
 
 old_version_sed="$( sed 's/\./\\./g' <<<"${old_version}" )" # Escape the '.' chars
-new_version_sed="$( cut -f1 -d'-' <<<"${new_version}" )"
 sed -i "s/${old_version_sed}/${new_version}/g" ${build_file}
 
 if [[ ${new_version} == *"-"* ]]; then