Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect formatting of heredoc in createSSC.sh causes script to fail. #24

Closed
meathead23 opened this issue Jun 30, 2020 · 1 comment · Fixed by #26
Closed

Incorrect formatting of heredoc in createSSC.sh causes script to fail. #24

meathead23 opened this issue Jun 30, 2020 · 1 comment · Fixed by #26
Labels
bug Something isn't working

Comments

@meathead23
Copy link

meathead23 commented Jun 30, 2020

when running the createSSC.sh script like below:

./createSCC.sh -n spm-deploy

The script throws the following error on MacOS running zsh and windows using gitbash

./createSCC.sh: line 77: syntax error: unexpected end of file

this is due to indentation in the usage function, changing this:

function usage() {
  cat <<-USAGE #| fmt
  Usage: $0 [OPTIONS] [arg]
    OPTIONS:
    =======
    --namespace        [namespace]           - The name of an existing namespace for the SPM deployment.

    USAGE
}

to this:

function usage() {
  cat <<-USAGE #| fmt
  Usage: $0 [OPTIONS] [arg]
    OPTIONS:
    =======
    --namespace        [namespace]           - The name of an existing namespace for the SPM deployment.

USAGE
} 

fixes the issue.

@niambhscullion12 niambhscullion12 added the bug Something isn't working label Jun 30, 2020
@niambhscullion12
Copy link

Thanks Matt! Much appreciated.
N..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants