diff --git a/cmake/templates/env.sh.in b/cmake/templates/env.sh.in index 7b5321d01..c4c8f9333 100755 --- a/cmake/templates/env.sh.in +++ b/cmake/templates/env.sh.in @@ -8,6 +8,6 @@ if [ $# -eq 0 ] ; then fi # source @SETUP_FILENAME@.sh from same directory as this file -_CATKIN_SETUP_DIR=$(cd "`dirname "$0"`" && pwd) +_CATKIN_SETUP_DIR=$(cd "`dirname "$0"`" > /dev/null && pwd) . "$_CATKIN_SETUP_DIR/@SETUP_FILENAME@.sh" exec "$@" diff --git a/cmake/templates/setup.bash.in b/cmake/templates/setup.bash.in index 4e7516e61..ff47af8f3 100644 --- a/cmake/templates/setup.bash.in +++ b/cmake/templates/setup.bash.in @@ -4,5 +4,5 @@ CATKIN_SHELL=bash # source setup.sh from same directory as this file -_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" && pwd) +_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd) . "$_CATKIN_SETUP_DIR/setup.sh" diff --git a/cmake/templates/setup.zsh.in b/cmake/templates/setup.zsh.in index 2fecd456b..b66071766 100644 --- a/cmake/templates/setup.zsh.in +++ b/cmake/templates/setup.zsh.in @@ -2,7 +2,7 @@ # generated from catkin/cmake/templates/setup.zsh.in CATKIN_SHELL=zsh -_CATKIN_SETUP_DIR=$(builtin cd -q "`dirname "$0"`" && pwd) +_CATKIN_SETUP_DIR=$(builtin cd -q "`dirname "$0"`" > /dev/null && pwd) emulate sh # emulate POSIX . "$_CATKIN_SETUP_DIR/setup.sh" emulate zsh # back to zsh mode