Commit b0a77033 authored by Hetrick, John's avatar Hetrick, John
Browse files

Refactored refred script to simplify

Refred command is now the same for all envs.
Updated the script to simplify and make consistent
with the other scripts
parent e0dac7a9
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -5,15 +5,10 @@ CONDA_ENVIRON=refred
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=refred-dev
    CMD=refred-gui
    shift # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=refred-qa
    CMD=refred-gui
    shift # drop this argument
  else
    CMD=refred-gui
  fi
fi

# import library to do the real work
@@ -22,7 +17,7 @@ fi
  . /bin/nsd-app-wrap.sh

# put together arguments - conda_env, application, argv
args=("${CONDA_ENVIRON}" "${CMD}" "$@")
args=("${CONDA_ENVIRON}" "refred-gui" "$@")

# launch the tool
activate_and_launch "${args[@]}"