[ Server ] [ Harbor ] - list project
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user