Skip to content

Commit

Permalink
Use /bin/sh as the shebang for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed May 11, 2012
1 parent fd0b6ac commit 2576ef3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rel/files/erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

## This script replaces the default "erl" in erts-VSN/bin. This is necessary
## as escript depends on erl and in turn, erl depends on having access to a
Expand Down Expand Up @@ -31,4 +31,4 @@ export ROOTDIR
export BINDIR
export PROGNAME

exec $CMD -boot $ROOTDIR/releases/$APP_VSN/start_clean ${1+"$@"}
exec $CMD -boot $ROOTDIR/releases/$APP_VSN/start_clean ${1+"$@"}
2 changes: 1 addition & 1 deletion rel/files/riak
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# -*- tab-width:4;indent-tabs-mode:nil -*-
# ex: ts=4 sw=4 et

Expand Down
2 changes: 1 addition & 1 deletion rel/files/riak-admin
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

RUNNER_SCRIPT_DIR={{runner_script_dir}}
RUNNER_SCRIPT=${0##*/}
Expand Down
2 changes: 1 addition & 1 deletion rel/files/search-cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

ORIGINAL_DIR=$(pwd)
RUNNER_SCRIPT_DIR={{runner_script_dir}}
Expand Down

1 comment on commit 2576ef3

@beerriot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes Ubuntu 11 complain:

vm1:~$ riak start
sudo doesn't appear to be installed and your EUID isn't riak

The type -p sudo command later in the script fails. It seems to not understand the -p flag:

vm1:~$ sh
$ type -p sudo
-p: not found
sudo is /usr/bin/sudo

Please sign in to comment.