diff options
author | Alan Coopersmith <[email protected]> | 2008-06-06 16:09:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-21 10:19:45 -0600 |
commit | 1043a7c71ab6b655fa3345dd34df0a5e84f3e031 (patch) | |
tree | cbfa14fdf3d1e759eaf4de0ee49538909fceb200 /bin | |
parent | 4ba39c40aef45be5d534676c8661e90808deb602 (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-x | bin/minstall | 3 |
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" |