[mousetrap/gnome3-wip: 54/240] /usr/bin/env is more consistent than /bin/env
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 54/240] /usr/bin/env is more consistent than /bin/env
- Date: Mon, 8 Sep 2014 15:17:04 +0000 (UTC)
commit 801e8fd5b76d53813ffac97f900c80959c061224
Author: Kevin Brown <kbrown rediker com>
Date: Mon Jun 2 20:44:15 2014 -0400
/usr/bin/env is more consistent than /bin/env
This changes the shebang for the executable files to /usr/bin/env,
replacing the /bin/env that was previously used. /usr/bin/env is
the standard location in Debian/RHEL, along with other distros.
/bin/env worked previously in Fedora because of symlinks, but it
is not the common way to refer to it. /bin/env does not exist in
Debian.
bin/mt-install | 3 ++-
bin/mt-pylint | 4 +++-
bin/mt-test | 3 ++-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/bin/mt-install b/bin/mt-install
index 972b053..5160987 100755
--- a/bin/mt-install
+++ b/bin/mt-install
@@ -1,4 +1,5 @@
-#!/bin/env bash
+#!/usr/bin/env bash
+
set -e
source "$(dirname "$0")/mt-define-mousetrap-home"
diff --git a/bin/mt-pylint b/bin/mt-pylint
index 7957fac..1678bd6 100755
--- a/bin/mt-pylint
+++ b/bin/mt-pylint
@@ -1,5 +1,7 @@
-#!/bin/env bash
+#!/usr/bin/env bash
+
source "$(dirname "$0")/mt-define-mousetrap-home"
+
pylint \
--reports=n \
"$MOUSETRAP_HOME/src/mousetrap"
diff --git a/bin/mt-test b/bin/mt-test
index 0d89727..d98095e 100755
--- a/bin/mt-test
+++ b/bin/mt-test
@@ -1,3 +1,4 @@
-#!/bin/env bash
+#!/usr/bin/env bash
+
source "$(dirname "$0")/mt-define-mousetrap-home"
"$MOUSETRAP_HOME/src/run_python_tests.py"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]