diskman 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60a56cc84faf0b324ccd66b0839aae9b647fd2ce580bfb0b699f42eba3ad136a
4
- data.tar.gz: 49689697c2d6ad593fad02dbee1fc10283bcd97d43a350f8c8c8924ea96e9ede
3
+ metadata.gz: af92ab20ba345984b997edfe9c2e06489a11c08b7240a6a2f1b88382184db332
4
+ data.tar.gz: 62d6cc569360f88c58a8f0be2e9291b94c55f5c8505782a8c2965c5cb8f9a24e
5
5
  SHA512:
6
- metadata.gz: b40ccefcd84a1adfe607029800ecb2107b64ad2cb4022d3507d8c105e40e531d82e7fecc04bcad6f1bb5b3f299119d3c0668c4a2150d87a3c5c07da18c638627
7
- data.tar.gz: c6c571cada30b6228851b2e61a564ae01fa3fac63ea04e94615bb8501b0d466599df6afb2bda0d06be34ed90f387f42d5e593507041a3cea8d101464c37847a4
6
+ metadata.gz: 7549703957b7db56efa771382cb5da70c6b639382c1bc95c8a8e6b67fa36186eb4adeb6082429417f7e30f90f06557e9dc18230d7ab568271edfdc0632d26060
7
+ data.tar.gz: 2708f95b53c5aa9cf1fc6ef43533a23397d06429f604369aa15158a65cbdd57e63b27908352f4f75a9767c1d9de6d1b8347b044b8af5f774e9945d561119aa42
@@ -17,13 +17,7 @@ module Diskman
17
17
  end
18
18
 
19
19
  def get_write_command(path, bytes)
20
- if `which 2>/dev/null pv`.length > 0
21
- pv = 'pv --size %d' % bytes
22
- dd = 'dd if="%s" | ' + pv + ' | sudo dd of="%s" bs=%d'
23
- else
24
- dd = 'sudo dd if="%s" of="%s" bs=%d'
25
- end
26
-
20
+ dd = 'sudo dd if="%s" of="%s" bs=%dK status=progress'
27
21
  dd % [path, @path, 4096]
28
22
  end
29
23
 
@@ -1,3 +1,3 @@
1
1
  module Diskman
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diskman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - crdx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all