Skip to content
Snippets Groups Projects
Commit 91a72fb1 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* fix the tcsh SCRIPTPATH elif in nptool.sh

        - tcsh use $tcsh instead of $TCSH_VERSION
parent c2be55aa
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ fi ...@@ -21,7 +21,7 @@ fi
# find script path # find script path
if [ -n "$ZSH_VERSION" ]; then if [ -n "$ZSH_VERSION" ]; then
SCRIPTPATH="$( cd "$( dirname "${(%):-%x}" )" && pwd )" SCRIPTPATH="$( cd "$( dirname "${(%):-%x}" )" && pwd )"
elif [ -n "$TCSH_VERSION" ]; then elif [ -n "$tcsh" ]; then
SCRIPTPATH="$( cd "$( dirname "$0" )" && pwd )" SCRIPTPATH="$( cd "$( dirname "$0" )" && pwd )"
elif [ -n "$BASH_VERSION" ]; then elif [ -n "$BASH_VERSION" ]; then
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment