Skip to content

Commit 4c4dce5

Browse files
committed
feat: prompt for SOURCE_REPO_URL value
1 parent 5a930df commit 4c4dce5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

monorepo-migration/migrate.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ check_command mvn
3232

3333
# Configuration
3434
MONOREPO_URL="https://github.com/googleapis/google-cloud-java"
35-
SOURCE_REPO_URL="${SOURCE_REPO_URL:-https://github.com/googleapis/java-logging}"
35+
if [ -z "$SOURCE_REPO_URL" ]; then
36+
read -p "Enter SOURCE_REPO_URL [https://github.com/googleapis/java-logging]: " input_url
37+
SOURCE_REPO_URL="${input_url:-https://github.com/googleapis/java-logging}"
38+
fi
3639
CODEOWNER="${CODEOWNER:-}"
3740
if [ -z "$CODEOWNER" ]; then
3841
read -p "Enter CODEOWNER (e.g., @chingor13): " CODEOWNER

0 commit comments

Comments
 (0)