From 7ca339d8654796bd54a3dba5a5839af53046bcf5 Mon Sep 17 00:00:00 2001 From: bazzargh Date: Wed, 12 Jun 2019 22:42:39 +0100 Subject: [PATCH] fix: Typo in documentation of 'env' (#162) source <$(aws-okta env profile) will get you 'no such file or directory: export', or similar. We just need to execute the command in a subshell. --- cmd/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/env.go b/cmd/env.go index a3114cab..d68941fc 100644 --- a/cmd/env.go +++ b/cmd/env.go @@ -17,7 +17,7 @@ var envCmd = &cobra.Command{ Use: "env ", Short: "env prints out export commands for the specified profile", RunE: envRun, - Example: "source <$(aws-okta env test)", + Example: "source <(aws-okta env test)", ValidArgs: listProfileNames(mustListProfiles()), }