Skip to content

Commit

Permalink
Merge pull request #220 from umccr/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl committed Oct 22, 2023
2 parents d6c22e6 + 041d8a7 commit aa650ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ MacOS users, please install greadlink through 'brew install coreutils'
Options:
--install-pandoc: Required for running the command icav2 projectpipelines create-cwl-from-zip
--no-autocompletion: Only for installation into GitHub actions (where _init_completion is not present)
"

ICAV2_CLI_PLUGINS_HOME="$HOME/.icav2-cli-plugins"
Expand Down Expand Up @@ -146,11 +147,15 @@ get_this_path() {
################
# Get args from command line
install_pandoc="false"
no_autocompletion="true"
while [ $# -gt 0 ]; do
case "$1" in
--install-pandoc)
install_pandoc="true"
;;
--no-autocompletion)
no_autocompletion="true"
;;
-h | --help)
print_help
exit 0
Expand Down Expand Up @@ -223,7 +228,7 @@ fi


# Checking bash-completion is installed (for bash users only)
if [[ "${user_shell}" == "bash" ]]; then
if [[ "${user_shell}" == "bash" && "${no_autocompletion}" == "false" ]]; then
if ! ("${SHELL}" -lic "type _init_completion 1>/dev/null"); then
echo_stderr "Could not find the command '_init_completion' which is necessary for auto-completion scripts"
echo_stderr "If you are running on MacOS, please run the following command:"
Expand All @@ -250,7 +255,6 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
fi
fi


#############
# CREATE DIRS
#############
Expand Down

0 comments on commit aa650ae

Please sign in to comment.