dir-archiver 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dir_archiver/dir_archiver.rb +4 -4
- data/lib/dir_archiver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87c04ae7ebe44d1e845c781af0f534bcc29de206
|
4
|
+
data.tar.gz: 321a35e0c780f89535795a050e2c04a34d063496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0212fd67647f1dbcbc109104fb3556b1c1d858c83a164f501c5612cf257df7822b71161944f396f3ed1cce24cce1117cfc96bef77469d5ad0368732a137c99b4
|
7
|
+
data.tar.gz: feead8d6344d286ec4661262e0c2e62d119a774c6b7a2fc48245e84d94e267750521e2e81f0769cece2862e710d3ea18ed05371cb5596ad9d6b71b95a79cc10c
|
data/CHANGELOG.md
CHANGED
@@ -18,7 +18,7 @@ module DirArchiver
|
|
18
18
|
FileUtils.mkdir_p(output_path) unless File.exists?(output_path) && File.directory?(output_path)
|
19
19
|
|
20
20
|
# Get the result from the result of `find` command
|
21
|
-
result = `find #{input_path} -type d -depth #{depth}`
|
21
|
+
result = `find '#{input_path}' -type d -depth #{depth}`
|
22
22
|
return if result && result.empty?
|
23
23
|
|
24
24
|
files = result.split("\n").map { |i| i.gsub(input_path, ".") }
|
@@ -36,11 +36,11 @@ module DirArchiver
|
|
36
36
|
Dir.chdir(input_path)
|
37
37
|
|
38
38
|
if commit
|
39
|
-
puts "tar zcvf #{output_name} #{path}"
|
39
|
+
puts "tar zcvf '#{output_name}' #{path}"
|
40
40
|
# Perform the actual compress here!
|
41
|
-
`tar zcvf #{output_name} #{path} 2> /dev/null`
|
41
|
+
`tar zcvf '#{output_name}' #{path} 2> /dev/null`
|
42
42
|
else
|
43
|
-
puts "tar zcvf #{output_name} #{path} (dry-run)"
|
43
|
+
puts "tar zcvf '#{output_name}' #{path} (dry-run)"
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
data/lib/dir_archiver/version.rb
CHANGED