sh/nas-clone.sh
2025-01-14 11:08:35 +08:00

13 lines
265 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
base_url="http://117.50.220.191:8418/nas"
project_name=""
# 循环直到project_name非空
while [ -z "$project_name" ]; do
read -p "请输入项目名称: " project_name
done
repo_url="${base_url}/${project_name}.git"
git clone "${repo_url}"