aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2007-01-24 15:26:00 +0000
committerPJ Eby <distutils-sig@python.org>2007-01-24 15:26:00 +0000
commitba006a1c6da9674ab91b5b0e6be616c06ec00799 (patch)
tree02492340d84387bacbd0248e0e8cf4843300743a /setuptools/command/bdist_egg.py
parenta47edc63fb498cee1ce07a06f3915417900fa7f3 (diff)
downloadexternal_python_setuptools-ba006a1c6da9674ab91b5b0e6be616c06ec00799.tar.gz
external_python_setuptools-ba006a1c6da9674ab91b5b0e6be616c06ec00799.tar.bz2
external_python_setuptools-ba006a1c6da9674ab91b5b0e6be616c06ec00799.zip
Fix "eggsecutables" (such as setuptools' own egg) only being runnable
with bash-compatible shells. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053540
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py2
1 files changed, 1 insertions, 1 deletions
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())"