Skip to content

Commit

Permalink
Support absolute paths for the BARNOWL_REAL variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelhage committed Oct 10, 2009
1 parent e072ba2 commit 4fb6714
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 @@ -12,5 +12,7 @@ if [ -z "$BARNOWL_REAL" ]; then
BARNOWL_REAL=barnowl.real
fi


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

0 comments on commit 4fb6714

Please sign in to comment.