Skip to content

Commit

Permalink
Change bash shebang to use /usr/bin/env.
Browse files Browse the repository at this point in the history
That makes those scripts usable on systems where GNU bash is not in
/bin/.  E.g., NixOS.
  • Loading branch information
ruediger committed Aug 17, 2014
1 parent 05426cd commit 570555b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cleanup-whitespace.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

SETUP='(progn (add-to-list (quote load-path) ".") (load "el-get")(defun cleanup-whitespace () (message "Cleaning whitespace %s" (buffer-file-name)) (setq indent-tabs-mode nil require-final-newline t) (untabify (point-min) (point-max)) (indent-region (point-min) (point-max)) (delete-trailing-whitespace (point-min) (point-max)) (save-buffer)) (add-hook (quote find-file-hook) (function cleanup-whitespace)) (add-to-list (quote auto-mode-alist) (quote ("\\.[rR][cC][pP]$" . emacs-lisp-mode))))'

Expand Down
2 changes: 1 addition & 1 deletion test/run-all-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

cd "$(dirname "$0")"

Expand Down
2 changes: 1 addition & 1 deletion test/run-ert-interactive.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "$(dirname $0)"/test-utils.sh
ERT_TEST="$EL_GET_LIB_DIR/test/test.el"
Expand Down
2 changes: 1 addition & 1 deletion test/run-ert.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "$(dirname $0)"/test-utils.sh
ERT_TEST="$EL_GET_LIB_DIR/test/test.el"
Expand Down
2 changes: 1 addition & 1 deletion test/run-test-interactive.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage: $0 testfile1 [testfile2 ...]"
Expand Down
2 changes: 1 addition & 1 deletion test/run-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage: $0 testfile1 [testfile2 ...]"
Expand Down
2 changes: 1 addition & 1 deletion test/run-travis-ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

$EMACS --version

Expand Down
2 changes: 1 addition & 1 deletion test/test-all-recipes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

cd "$(dirname "$0")"

Expand Down
2 changes: 1 addition & 1 deletion test/test-interactive.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set_default () {
eval "
Expand Down
2 changes: 1 addition & 1 deletion test/test-recipe-interactive.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage: $0 recipe1 [recipe2 ...]"
Expand Down
2 changes: 1 addition & 1 deletion test/test-recipe.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage: $0 recipe1 [recipe2 ...]"
Expand Down

0 comments on commit 570555b

Please sign in to comment.