687 B
687 B
#!/usr/bin/env bash
set -e
# ===== Configuration =====
# Put your repo URL here:
REPO_URL="https://hub.openingdesign.com/OpeningDesign/Cool_Car_Guys.git"
# (Optional) Target directory name
TARGET_DIR="$(basename "$REPO_URL" .git)"
# ===== Timer Start =====
START_TIME=$(date +%s)
echo "Cloning repository: $REPO_URL"
git clone --progress "$REPO_URL" "$TARGET_DIR" 2>&1
# ===== Timer End =====
END_TIME=$(date +%s)
ELAPSED=$((END_TIME - START_TIME))
# Convert elapsed time to minutes:seconds
MINUTES=$((ELAPSED / 60))
SECONDS=$((ELAPSED % 60))
echo
echo "✅ Clone completed in ${MINUTES}m ${SECONDS}s"
# Optional: pause before exiting
read -p "Press ENTER to exit..."