Skip to content

Commit f992793

Browse files
authored
update_versions.sh script fix (#2005)
1 parent f6b8dda commit f992793

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utilities/update_versions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ for item in ${modules[*]}; do
228228
# echo -e "new_base_version=${new_base_version}, new_qualifier=${new_qualifier}, new_snapshot=${new_snapshot}"
229229

230230
echo -e "Updating module ${BOLD}${module}${NC} in folder ${folder} from version ${RED}${old_version}${NC} to ${GREEN}${new_version}${NC}"
231-
module_suffix=${module##google-cloud-}
231+
if [ "${module}" == "google-cloud" ]; then
232+
module_suffix="cloud"
233+
else
234+
module_suffix="${module##google-cloud-}"
235+
fi
232236

233237
# Where the actual version changing happens (the only mutative operations in the script).
234238

0 commit comments

Comments
 (0)