diff --git a/README.md b/README.md index 4300f89..78e41e5 100644 --- a/README.md +++ b/README.md @@ -200,5 +200,5 @@ export AWS_SECRET_ACCESS_KEY=... #export GCREDSTASH_GET_ERROUT=/proc/1/fd/2 -#export GCREDSTASH_TRAILING_NEWLINE=1 +#export GCREDSTASH_GET_TRAILING_NEWLINE=1 ``` diff --git a/debian/changelog b/debian/changelog index 292ae72..ce5b097 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,7 @@ gcredstash (0.3.5) unstable; urgency=low * Add GCREDSTASH_GET_ERROUT env. - * Add GCREDSTASH_TRAILING_NEWLINE env. + * Add GCREDSTASH_GET_TRAILING_NEWLINE env. -- Genki Sugawara Sat, 22 Jul 2017 19:07:34 +0900 diff --git a/src/gcredstash/command/get.go b/src/gcredstash/command/get.go index e795dab..247d5c8 100644 --- a/src/gcredstash/command/get.go +++ b/src/gcredstash/command/get.go @@ -16,7 +16,7 @@ func (c *GetCommand) parseArgs(args []string) (string, string, map[string]string argsWithoutN, noNL := gcredstash.HasOption(args, "-n") if !noNL { - trailingNewline := os.Getenv("GCREDSTASH_TRAILING_NEWLINE") + trailingNewline := os.Getenv("GCREDSTASH_GET_TRAILING_NEWLINE") if trailingNewline == "1" { noNL = true diff --git a/src/gcredstash/command/get_test.go b/src/gcredstash/command/get_test.go index bcd648c..289583d 100644 --- a/src/gcredstash/command/get_test.go +++ b/src/gcredstash/command/get_test.go @@ -194,7 +194,7 @@ func TestGetCommandWithTrailingNewline(t *testing.T) { } args := []string{name} - os.Setenv("GCREDSTASH_TRAILING_NEWLINE", "1") + os.Setenv("GCREDSTASH_GET_TRAILING_NEWLINE", "1") out, err := cmd.RunImpl(args) expected := "test.value"