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

Preserving quotes in arguments for BASH scripts. (fixes #297) #298

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Preserving quotes in arguments for BASH scripts. (fixes #297)
  • Loading branch information
kherrera-ebsco authored May 15, 2019
commit e53f7bf8d38911b1ff464dbf307d1241b1060e47
8 changes: 4 additions & 4 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ if ! grep '^#OktaAWSCLI' "${bash_functions}" &>/dev/null; then
cat <<'EOF' >>"${bash_functions}"
#OktaAWSCLI
function okta-aws {
withokta "aws --profile $1" $@
withokta "aws --profile $1" "$@"
}
function okta-sls {
withokta "sls --stage $1" $@
withokta "sls --stage $1" "$@"
}
EOF
fi
Expand Down Expand Up @@ -143,7 +143,7 @@ fi
env OKTA_PROFILE=$profile java \
-Djava.util.logging.config.file=~/.okta/logging.properties \
-classpath ~/.okta/okta-aws-cli.jar \
com.okta.tools.WithOkta $command $@
com.okta.tools.WithOkta $command "$@"
EOF
chmod +x "${PREFIX}/bin/withokta"

Expand All @@ -167,7 +167,7 @@ chmod +x "${PREFIX}/bin/okta-listroles"
# awscli
cat <<'EOF' >"${PREFIX}/bin/awscli"
#!/bin/bash
withokta aws default $@
withokta aws default "$@"
EOF
chmod +x "${PREFIX}/bin/awscli"

Expand Down