Skip to content

Commit

Permalink
cleanup env before exec shell script (#66)
Browse files Browse the repository at this point in the history
* cleanup env before exec shell script for proper language settings and security reasons

* fix CHANGELOG

* Use the new Ruby hash syntax
  • Loading branch information
stefan-walluhn authored and majormoses committed Jul 31, 2017
1 parent b471f4e commit 64f791e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
### Fixed
- fix shell call response when running on non en_US locale systems (@stefan-walluhn)

## [3.0.1] - 2017-07-07
### Fixed
- check-memory.sh: fixed a syntax error preventing it from running (@majormoses)
Expand Down
2 changes: 1 addition & 1 deletion bin/check-memory-percent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
bin_dir = File.expand_path(File.dirname(__FILE__))
shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.sh')

exec shell_script_path, *ARGV
exec shell_script_path, *ARGV, unsetenv_others: true
2 changes: 1 addition & 1 deletion bin/check-memory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
bin_dir = File.expand_path(File.dirname(__FILE__))
shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.sh')

exec shell_script_path, *ARGV
exec shell_script_path, *ARGV, unsetenv_others: true

0 comments on commit 64f791e

Please sign in to comment.