Fix sudo finding under sh #140

beerriot opened this Issue May 21, 2012 · 0 comments


None yet

2 participants


Ubuntu 11 didn't like our switch to sh:


We need to fix the method by which we find sudo before release.

@jaredmorrow jaredmorrow was assigned May 21, 2012
@hmmr hmmr pushed a commit that referenced this issue Nov 8, 2016
Jared Morrow Remove bashisms from shell scripts which use /bin/sh
Fixes #140

`type -p` is not supported by /bin/sh and caused the riak and riak-admin scripts
to think that `sudo` was not available.  In addition `kill -SIGNAL` is not portable
to /bin/sh and should be replaced by `kill -s SIGNAL` instead.

The portability was checked with `checkbashisms` from the devscripts package in
ubuntu 10.04 and was tested on /bin/sh in solaris, ubuntu, and OSX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment