aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetuptools.txt3
-rw-r--r--setuptools/command/bdist_egg.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/setuptools.txt b/setuptools.txt
index ad13dbfc..22271f62 100755
--- a/setuptools.txt
+++ b/setuptools.txt
@@ -2603,6 +2603,9 @@ Release Notes/Change History
0.6c6
* Fix not building binary RPMs correctly.
+ * Fix "eggsecutables" (such as setuptools' own egg) only being runnable with
+ bash-compatible shells.
+
0.6c5
* Fix uploaded ``bdist_rpm`` packages being described as ``bdist_egg``
packages under Python versions less than 2.5.
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index f7128fd1..2e9007ce 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -305,7 +305,7 @@ class bdist_egg(Command):
header = (
"#!/bin/sh\n"
- 'if [[ `basename $0` = "%(basename)s" ]]\n'
+ 'if [ `basename $0` = "%(basename)s" ]\n'
'then exec python%(pyver)s -c "'
"import sys, os; sys.path.insert(0, os.path.abspath('$0')); "
"from %(pkg)s import %(base)s; sys.exit(%(full)s())"