Skip to content

Commit

Permalink
Merge pull request #61 from dev-sec/mysql_version
Browse files Browse the repository at this point in the history
fix quotes in library again
  • Loading branch information
micheelengronne committed Oct 20, 2020
2 parents cf6f004 + 2287509 commit 7b0a3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/mysql_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def initialize(user, pass)
end

def mysql_version
inspec.command("mysql -sN -e 'SHOW VARIABLES WHERE variable_name = \"version\"'").stdout.strip.split('\t')[1].split('-')[0].to_s
inspec.command("mysql -sN -e 'SHOW VARIABLES WHERE variable_name = \"version\"'").stdout.strip.split("\t")[1].split('-')[0].to_s
end
end

0 comments on commit 7b0a3cb

Please sign in to comment.