Fix unruby paradigm
This commit is contained in:
parent
a42e57f274
commit
3e2ab58d56
|
@ -92,7 +92,7 @@ eos
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_dir(dir, safe)
|
def validate_dir(dir, safe)
|
||||||
if File.symlink?(dir) && safe?
|
if File.symlink?(dir) && safe
|
||||||
return "Includes directory '#{dir}' cannot be a symlink"
|
return "Includes directory '#{dir}' cannot be a symlink"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -100,7 +100,7 @@ eos
|
||||||
def validate_file(file, safe)
|
def validate_file(file, safe)
|
||||||
if !File.exists?(file)
|
if !File.exists?(file)
|
||||||
return "Included file '#{@file}' not found in '#{INCLUDES_DIR}' directory"
|
return "Included file '#{@file}' not found in '#{INCLUDES_DIR}' directory"
|
||||||
elsif File.symlink?(file) && safe?
|
elsif File.symlink?(file) && safe
|
||||||
return "The included file '#{INCLUDES_DIR}/#{@file}' should not be a symlink"
|
return "The included file '#{INCLUDES_DIR}/#{@file}' should not be a symlink"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue