Skip to content

Commit b0f719c

Browse files
Update bito-cra.sh
trim white spaces
1 parent 3828110 commit b0f719c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cra-scripts/bito-cra.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,9 @@ for param in "${required_params[@]}" "${bee_params[@]}" "${optional_params[@]}";
464464
docker_cmd+=" --$param=${props[$param]}"
465465
elif [ "$param" == "pr_url" ]; then
466466
#validate the URL
467-
validate_url "${props[$param]}"
468-
docker_cmd+=" --$param=${props[$param]} review"
467+
trimmed_url=$(echo "${props[$param]}" | sed 's/^[ \t]*//;s/[ \t]*$//')
468+
validate_url $trimmed_url
469+
docker_cmd+=" --$param=${trimmed_url} review"
469470
elif [ "$param" == "git.provider" ]; then
470471
#validate the URL
471472
props[$param]=$(validate_git_provider "${props[$param]}")

0 commit comments

Comments
 (0)