very_safe_rm 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/very_safe_rm +9 -1
- data/lib/very_safe_rm/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: 8cb5cf1b0bbc86d526ba5b4c70e56504ef852e46
|
4
|
+
data.tar.gz: 1f176cb2678048db790651b2ce73d23035e5d3c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29eebcce88c2ae6618186da38039d94d9e044fed1c30e31ab9833f016c691748397f01c11d7c967f9185198ec06c353c245301bcbaa7382d19b0376ddd96c19e
|
7
|
+
data.tar.gz: 8fdef64895b912fe2e0e676285c77ef42ded6157fa662bc8ee70d1860724944ea6a4e218bed70da3864d8691929c2858bac1f4144ce79b1c3ab295a5236e4a94
|
data/exe/very_safe_rm
CHANGED
@@ -4,9 +4,17 @@ require 'very_safe_rm'
|
|
4
4
|
|
5
5
|
file, args = VerySafeRm.parse ARGV
|
6
6
|
|
7
|
+
if args.include? '--version'
|
8
|
+
print 'very_safe_rm '
|
9
|
+
puts VerySafeRm::VERSION
|
10
|
+
puts
|
11
|
+
system 'rm --version'
|
12
|
+
exit
|
13
|
+
end
|
14
|
+
|
7
15
|
if file.empty?
|
8
16
|
system 'rm'
|
9
|
-
exit
|
17
|
+
exit 1
|
10
18
|
end
|
11
19
|
|
12
20
|
if args.include?('-r') || args.include?('-R') || args.include?('--recursive')
|
data/lib/very_safe_rm/version.rb
CHANGED