We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d103f2 commit 30833e3Copy full SHA for 30833e3
monorepo-migration/migrate.sh
@@ -3,6 +3,19 @@
3
# Exit on error
4
set -e
5
6
+# Function to check if a command exists
7
+check_command() {
8
+ if ! command -v "$1" >/dev/null 2>&1; then
9
+ echo "Error: $1 is not installed or not in PATH." >&2
10
+ exit 1
11
+ fi
12
+}
13
+
14
+# Check for necessary CLI binaries
15
+check_command git
16
+check_command python3
17
+check_command mvn
18
19
# Configuration
20
MONOREPO_URL="https://github.com/googleapis/google-cloud-java"
21
SOURCE_REPO_URL="https://github.com/googleapis/java-logging"
0 commit comments