[ Server ] [ Harbor ] - list project

This commit is contained in:
zeaslity
2023-11-14 14:54:52 +08:00
parent 2b3a503a5a
commit 6da11ffecd
3 changed files with 140 additions and 51 deletions

View File

@@ -3,7 +3,6 @@
SourcePath=/vmfs/volumes/HardDrive
DestinationPath=/vmfs/volumes/datastore2
main() {
check_input "$@"
# 继续执行其他操作
@@ -29,14 +28,14 @@ main() {
echo "检查复制结果 ↓↓↓↓↓↓"
ls "$SourcePath/$vmHostname"
}
check_input() {
if [ "$#" -ne 1 ]; then
echo "输入参数数量必须为1个"
exit 1
fi
fi
}
main "$@"
main "$@"