mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #775: Check for regular files if file format is specified in the CLI
This commit is contained in:
parent
b58bb3f5ba
commit
92edeb5a0a
@ -389,7 +389,7 @@ EOT
|
||||
end
|
||||
|
||||
def format_file(arg)
|
||||
File.exists?(arg) ? [0,arg] : [-1]
|
||||
File.file?(arg) ? [0,arg] : [-1]
|
||||
end
|
||||
|
||||
REG_RANGE=/^(?:(?:\d+\.\.\d+|\d+),)*(?:\d+\.\.\d+|\d+)$/
|
||||
|
Loading…
x
Reference in New Issue
Block a user