From 1043a7c71ab6b655fa3345dd34df0a5e84f3e031 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 6 Jun 2008 16:09:10 -0700 Subject: Make minstall work with Solaris /bin/sh Solaris /bin/sh doesn't set $PWD for you Signed-off-by: Brian Paul --- bin/minstall | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/minstall b/bin/minstall index 819b2bc7e4a..8ee96089fa6 100755 --- a/bin/minstall +++ b/bin/minstall @@ -42,6 +42,8 @@ if [ $# -ge 2 ] ; then exit 0 fi + PWDSAVE=`pwd` + # determine file's type if [ -h "$FILE" ] ; then #echo $FILE is a symlink @@ -57,7 +59,6 @@ if [ $# -ge 2 ] ; then FILE=`basename "$FILE"` # Go to $DEST and make the link - PWDSAVE="$PWD" cd "$DEST" # pushd $RM "$FILE" $SYMLINK "$TARGET" "$FILE" -- cgit v1.2.3