Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
GCREDSTASH_TRAILING_NEWLINE -> GCREDSTASH_GET_TRAILING_NEWLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Jul 22, 2017
1 parent a981d12 commit 48869f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <sgwr_dts@yahoo.co.jp> Sat, 22 Jul 2017 19:07:34 +0900

Expand Down
2 changes: 1 addition & 1 deletion src/gcredstash/command/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gcredstash/command/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 48869f5

Please sign in to comment.