summaryrefslogtreecommitdiff
path: root/bin/minstall
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-06-24 14:08:08 -0700
committerEric Anholt <eric@anholt.net>2008-06-24 14:08:08 -0700
commitf6abe8f0f2fba3073b58b96ed38aae163c765b4a (patch)
tree706ba29d021fb1e4c54500e8773e3dda5f9ff6e8 /bin/minstall
parenta42dac187973cbc17be6c59db89264cbc935ab91 (diff)
parent5174b85a0cb13b06779ea6fc0a8362c9fe57e2ea (diff)
Merge commit 'origin/master' into drm-gem
Diffstat (limited to 'bin/minstall')
-rwxr-xr-xbin/minstall3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/minstall b/bin/minstall
index 819b2bc7e4..8ee96089fa 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"