Doesn't depend on bash being in any specific location anymore.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@659 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-03 17:43:35 +00:00
parent ce7f64e395
commit 241dc6d52d
+10 -2
View File
@@ -1,7 +1,15 @@
#!/bin/bash
#!/usr/bin/bash
#!/bin/sh
# Substitute a string in many files. By Serge van den Boom, 20020826
# We need bash functionality. Executing bash with the shebang won't be
# portable as the location of bash differs.
SHELLFILE="$_"
case "$SHELLFILE" in
sh|*/sh)
exec bash "$0" "$@"
;;
esac
if [ $# -eq 0 ]; then
{
echo "subst: substitute a string in a lot of files."