deprec 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ module Std
|
|
59
59
|
# +options+ are as for *put*
|
60
60
|
#
|
61
61
|
def su_put(data, destination, temporary_area='/tmp', options={})
|
62
|
-
temporary_area = File.join(temporary_area,File.basename(destination))
|
62
|
+
temporary_area = File.join(temporary_area,File.basename(destination))
|
63
63
|
put(data, temporary_area, options)
|
64
64
|
sudo <<-CMD
|
65
65
|
sh -c "install -m#{sprintf("%3o",options[:mode]||0755)} #{temporary_area} #{destination} &&
|