git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484d06d
)
Try to change to directory from which become was run.
author
Iain Patterson
<me@iain.cx>
Wed, 21 Apr 2010 13:27:04 +0000
(14:27 +0100)
committer
Iain Patterson
<me@iain.cx>
Fri, 23 Apr 2010 13:59:29 +0000
(14:59 +0100)
opt/bin/become
patch
|
blob
|
history
diff --git
a/opt/bin/become
b/opt/bin/become
index
b6b2f20
..
26298cb
100755
(executable)
--- a/
opt/bin/become
+++ b/
opt/bin/become
@@
-69,6
+69,7
@@
fi
echo >&3 ". $HOME/.bash_profile"
[ -f "$BECOME/all" ] && cat >&3 2>/dev/null "$BECOME/all"
[ -f "$BECOME/$user" ] && cat >&3 2>/dev/null "$BECOME/$user"
+echo >&3 2>/dev/null "cd - &>/dev/null"
exec 3>&-
dir=$(dirname "$0")