summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlan Coopersmith <[email protected]>2008-06-06 16:09:10 -0700
committerBrian Paul <[email protected]>2008-06-21 10:19:45 -0600
commit1043a7c71ab6b655fa3345dd34df0a5e84f3e031 (patch)
treecbfa14fdf3d1e759eaf4de0ee49538909fceb200 /bin
parent4ba39c40aef45be5d534676c8661e90808deb602 (diff)
Make minstall work with Solaris /bin/sh
Solaris /bin/sh doesn't set $PWD for you Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/minstall3
1 files changed, 2 insertions, 1 deletions
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"