aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-09-24 07:39:11 -0400
committerRalph Amissah <ralph@amissah.com>2011-09-24 07:39:11 -0400
commit5048519fbbe92da19a395e79561cb2bcd6542e7d (patch)
treedaf780be791187f6f8fa89b11cd1f5e311bc7443 /lib/sisu/v3/sysenv.rb
parentv2 v3: param, matching of date, years 1400 - 21\d\d (diff)
v3: cosmetic, minor
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb
index 7463cb4b..79ae61af 100644
--- a/lib/sisu/v3/sysenv.rb
+++ b/lib/sisu/v3/sysenv.rb
@@ -3199,9 +3199,9 @@ WOK
fnb=@fns[m,1]
end
def make_file(path,filename)
- if File.writable?("#{path}/."); File.new("#{path}/#{filename}",'w+')
- else SiSU_Screen::Ansi.new('',"is the file or directory writable?, could not create #{filename}").warn
- end
+ (File.writable?("#{path}/.")) \
+ ? File.new("#{path}/#{filename}",'w+')
+ : (SiSU_Screen::Ansi.new('',"is the file or directory writable?, could not create #{filename}").warn)
end
def touch_file(path,filename)
if File.writable?("#{path}/.");