mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
M #: Minor improvements
This commit is contained in:
parent
828a59f897
commit
41993ce155
@ -52,7 +52,7 @@ fi
|
||||
|
||||
# Check dockerdir is different than / and the directory name is an uuid
|
||||
regex_uuid="^\{?[A-F0-9a-f]{8}-[A-F0-9a-f]{4}-[A-F0-9a-f]{4}-[A-F0-9a-f]{4}-[A-F0-9a-f]{12}\}?$"
|
||||
if [[ ! `echo $dockerdir | awk -F/ '{print $NF}'` =~ $regex_uuid ]]; then
|
||||
if [ ! -d $dockerdir ] || [[ ! $(basename $dockerdir) =~ $regex_uuid ]]; then
|
||||
exit -1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user