Skip to content

Commit

Permalink
Compute path separately from exec
Browse files Browse the repository at this point in the history
  • Loading branch information
davidben committed Apr 24, 2010
1 parent 8e3d60b commit a5fcd8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions barnowl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if [ -z "$BARNOWL_REAL" ]; then
fi

case $BARNOWL_REAL in
/*) exec "$BARNOWL_REAL" "$@" ;;
*) exec "$(athdir /mit/barnowl bin)/$BARNOWL_REAL" "$@" ;;
/*) BARNOWL_REAL_PATH="$BARNOWL_REAL" ;;
*) BARNOWL_REAL_PATH="$(athdir /mit/barnowl bin)/$BARNOWL_REAL" ;;
esac

exec "$BARNOWL_REAL_PATH" "$@"

0 comments on commit a5fcd8b

Please sign in to comment.