Permalink
Browse files

Escape the worktop after running the nested command

  • Loading branch information...
1 parent 797fb9d commit d34046037f5a2a8025839c36d2ed46a562c47a65 @halorgium committed Sep 28, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 worktop.sh
View
@@ -141,6 +141,9 @@ worktop() {
if [ -n "${1:-""}" ]; then
$@
+ result=$?
+ __worktop_uncd
+ return $result
else
echo "Changing to worktop [${name}]" >&2
return $?

0 comments on commit d340460

Please sign in to comment.