shellutils 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,7 +123,7 @@ module ShellUtils
123
123
  w.sync = true
124
124
  w.flush
125
125
  puts "-4" if DEBUG
126
- if r.expect(/[Pp]assword.*:.*$/)
126
+ if r.expect(/[Pp]assword.*:.*$/, 10)
127
127
  puts "-5" if DEBUG
128
128
  w.flush
129
129
  w.puts(get_sudo_pwd)
@@ -132,7 +132,7 @@ module ShellUtils
132
132
  begin
133
133
  w.flush
134
134
  puts "-7" if DEBUG
135
- if r.expect(/[Pp]assword.*:.*$/)
135
+ if r.expect(/[Pp]assword.*:.*$/, 10)
136
136
  error("the sudo password is incorrect. password=#{get_sudo_pwd}\nPlease change the password ex) set_sudo_pwd PASSWORD")
137
137
  end
138
138
  rescue
@@ -1,3 +1,3 @@
1
1
  module Shellutils
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: