添加 nas-clone.sh
This commit is contained in:
parent
e877b563cb
commit
5113aa012f
13
nas-clone.sh
Normal file
13
nas-clone.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/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}"
|
Loading…
Reference in New Issue
Block a user