Commit e45a4916 authored by kai.b's avatar kai.b
Browse files

Merge branch 'master' of dgt-gitlab.gsc.riken.jp:tom/cellranger_convert into kai

parents 0a7d593f 8e33e48e
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -105,23 +105,26 @@ else
    SHELL=$(ps -p $$ | awk '$1 == PP {print $4}' PP=$$)
fi
## detect how called (e.g., bash converrt.sh or ./launch_universc.sh)
if [[ $(which launch_universc.sh) == *"/"* ]]; then
if [[ $(which launch_universc.sh) == *"/"* ]] || [[ $0 == *"/"* ]]; then
    SHELL=''
    invocation=$0
else
    if [[ -z $ZSH_VERSION ]]; then
    if [[ ! -z $ZSH_VERSION ]]; then
        SHELL="zsh"
    elif [[ -z $KSH_VERSION ]]; then
    elif [[ ! -z $KSH_VERSION ]]; then
       SHELL="ksh"
    elif [[ -z $FISH_VERSION ]]; then
    elif [[ ! -z $FISH_VERSION ]]; then
       SHELL="fish"
    elif [[ -z $BASH_VERSION ]]; then
    elif [[ ! -z $BASH_VERSION ]]; then
        SHELL="bash"
    else
       SHELL=$SHELL
    fi
    invocation=$(echo $(basename $0))
fi
if [[ $SHELL != "" ]]; then
    SHELL=" $SHELL"
fi
help='
Usage:
 '$SHELL' '$invocation' --testrun -t TECHNOLOGY