Skip to content

Commit

Permalink
fixed path in script
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhbir-singh committed Jul 5, 2018
1 parent 1e84b3a commit accc55f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/smart_statuses/smart_test_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_color(status)
end

def read_smart_status(filepath)
return "Some error occurred" unless File.exists?(filepath)
return "Some Error Occurred !!" unless File.exists?(filepath)
file = File.new(filepath)
line_num = file.find_index { |line| line =~ /START OF READ SMART DATA SECTION/ }

Expand Down
2 changes: 1 addition & 1 deletion script/fetch-smart-status
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lsblk -o name,type | grep disk | awk '{print $1;}' >> disk_names

while read line
do
smartctl -H '/dev/'$line > '../db/smartctl-'$line
smartctl -H '/dev/'$line > '/db/smartctl-'$line
done < disk_names

EOF
Expand Down

0 comments on commit accc55f

Please sign in to comment.