summaryrefslogtreecommitdiffstats
path: root/encap
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-09-05 00:14:16 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2006-09-05 00:14:16 +0000
commitcbbe65c4460403aa98265db3b4a99e5c75883466 (patch)
tree9d6ef95e756d2ba1b8f6bdf4eb8439ee2af810fa /encap
parentdf3f0c0e55645adbe6d0810d2665df23cf49e9ac (diff)
downloadbcfg2-cbbe65c4460403aa98265db3b4a99e5c75883466.tar.gz
bcfg2-cbbe65c4460403aa98265db3b4a99e5c75883466.tar.bz2
bcfg2-cbbe65c4460403aa98265db3b4a99e5c75883466.zip
EncapPackages: Solaris sh(1) sucks and apperantly hasn't been updated
since the 1970s. Use ksh instead. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2197 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap')
-rwxr-xr-xencap/src/makeself-dist/makedist.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/encap/src/makeself-dist/makedist.sh b/encap/src/makeself-dist/makedist.sh
index 2294b03eb..2a6445d9e 100755
--- a/encap/src/makeself-dist/makedist.sh
+++ b/encap/src/makeself-dist/makedist.sh
@@ -80,9 +80,13 @@ BCFG2_SITE="$BSEP"
cp $BSDIR/$BCFG2_SITE $DISTDIR
# Create setup.sh in $DISTDIR
+if [ "`uname`x" = "SunOSx" ]; then
+ printf "#!/bin/ksh\n\n" > $DISTDIR/setup.sh
+else
+ printf "#!/bin/sh\n\n" > $DISTDIR/setup.sh
+fi
######################################################################
-cat > $DISTDIR/setup.sh << EOF
-#!/bin/sh
+cat >> $DISTDIR/setup.sh << EOF
# \$Id$
@@ -154,10 +158,10 @@ getpasswd() {
stty -echo
trap "stty echo ; echo 'Interrupted' ; exit 1" 1 2 3 15
printf "Enter \$1 password: "
- read password1
+ read -r password1
printf "\n"
printf "Enter \$1 password again: "
- read password2
+ read -r password2
printf "\n"
stty echo
if [ "\${password1}x" != "\${password2}x" ]; then