Browse files

Use /bin/sh as the shebang for scripts

  • Loading branch information...
1 parent fd0b6ac commit 2576ef3ec2a8a34e5307a569986374ae7d71c0bf @Vagabond Vagabond committed Oct 4, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 rel/files/erl
  2. +1 −1 rel/files/riak
  3. +1 −1 rel/files/riak-admin
  4. +1 −1 rel/files/search-cmd
View
4 rel/files/erl
@@ -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
@@ -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+"$@"}
View
2 rel/files/riak
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# -*- tab-width:4;indent-tabs-mode:nil -*-
# ex: ts=4 sw=4 et
View
2 rel/files/riak-admin
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
RUNNER_SCRIPT_DIR={{runner_script_dir}}
RUNNER_SCRIPT=${0##*/}
View
2 rel/files/search-cmd
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
ORIGINAL_DIR=$(pwd)
RUNNER_SCRIPT_DIR={{runner_script_dir}}

1 comment on commit 2576ef3

@beerriot

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.