diff options
author | Tim Smith <tsmith@chef.io> | 2018-10-30 17:38:46 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-10-31 14:22:22 -0700 |
commit | 8d89528c6e667dda012261768a1711d42035c851 (patch) | |
tree | 207c06b829b7693cb70723c6f9679579680888fc | |
parent | 97325150ccfdb696689c76fc8179541e5148a1e7 (diff) | |
download | chef-8d89528c6e667dda012261768a1711d42035c851.tar.gz |
Remove bashisms so these scripts work on legacy platformsSLES_15_on_13
I look forward to a world where we can assume modern shells.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-x | omnibus/package-scripts/angrychef/postrm | 4 | ||||
-rwxr-xr-x | omnibus/package-scripts/chef-fips/postrm | 4 | ||||
-rwxr-xr-x | omnibus/package-scripts/chef/postrm | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/omnibus/package-scripts/angrychef/postrm b/omnibus/package-scripts/angrychef/postrm index 7789e7f221..a153da7102 100755 --- a/omnibus/package-scripts/angrychef/postrm +++ b/omnibus/package-scripts/angrychef/postrm @@ -17,8 +17,8 @@ is_darwin() { is_suse() { if [ -f /etc/os-release ]; then - source /etc/os-release - [ $ID_LIKE == "sles" ] || [ $ID_LIKE == "suse" ] + . /etc/os-release + [ "$ID_LIKE" = "sles" ] || [ "$ID_LIKE" = "suse" ] else [ -f /etc/SuSE-release ] fi diff --git a/omnibus/package-scripts/chef-fips/postrm b/omnibus/package-scripts/chef-fips/postrm index 7789e7f221..a153da7102 100755 --- a/omnibus/package-scripts/chef-fips/postrm +++ b/omnibus/package-scripts/chef-fips/postrm @@ -17,8 +17,8 @@ is_darwin() { is_suse() { if [ -f /etc/os-release ]; then - source /etc/os-release - [ $ID_LIKE == "sles" ] || [ $ID_LIKE == "suse" ] + . /etc/os-release + [ "$ID_LIKE" = "sles" ] || [ "$ID_LIKE" = "suse" ] else [ -f /etc/SuSE-release ] fi diff --git a/omnibus/package-scripts/chef/postrm b/omnibus/package-scripts/chef/postrm index 7789e7f221..a153da7102 100755 --- a/omnibus/package-scripts/chef/postrm +++ b/omnibus/package-scripts/chef/postrm @@ -17,8 +17,8 @@ is_darwin() { is_suse() { if [ -f /etc/os-release ]; then - source /etc/os-release - [ $ID_LIKE == "sles" ] || [ $ID_LIKE == "suse" ] + . /etc/os-release + [ "$ID_LIKE" = "sles" ] || [ "$ID_LIKE" = "suse" ] else [ -f /etc/SuSE-release ] fi |