Skip to content

Commit

Permalink
update setup scripts to use builtin cd command (fix #542)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Oct 25, 2013
1 parent e6e8a40 commit cbd6fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/templates/setup.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
CATKIN_SHELL=bash

# source setup.sh from same directory as this file
_CATKIN_SETUP_DIR=$(cd "`dirname "${BASH_SOURCE[0]}"`" && pwd)
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"
2 changes: 1 addition & 1 deletion cmake/templates/setup.zsh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# generated from catkin/cmake/templates/setup.zsh.in

CATKIN_SHELL=zsh
_CATKIN_SETUP_DIR=$(cd "`dirname "$0"`" && pwd)
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "$0"`" && pwd)
emulate sh # emulate POSIX
. "$_CATKIN_SETUP_DIR/setup.sh"
emulate zsh # back to zsh mode

0 comments on commit cbd6fe4

Please sign in to comment.