Skip to content

CLI is always reinstalled by init-tools.sh #239

@dagood

Description

@dagood

This is making the CLI always install on my Fedora 26 runs (and probably other shells):

if [ -e $__BUILD_TOOLS_SEMAPHORE ]; then
echo "Tools are already initialized"
return #return instead of exit because this script is inlined in other scripts which we don't want to exit
fi

/home/dagood/git/here-source-build/init-tools.sh: line 19: return: can only `return' from a function or sourced script

Two fixes come to mind:

  1. Wrap the rest of the file with else rather than trying to early return.
  2. Put the code in a function and keep using return.

@weshaggard @eerhardt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions