Skip to content

Commit 3ce3b64

Browse files
committed
update readme, cleanup file
1 parent 2380a5c commit 3ce3b64

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Readme.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ If object is a map, the keys are the environment variables and the values are th
152152
- Add a `-force` flag to `sicher init` to overwrite the encrypted file if it already exists
153153
- Enable support for nested yaml env files
154154
- Add support for other types of encryption
155-
- Dont replace the file if the content is the same
156-
- test for Edit
157155

158156
### License
159157

sicher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (s *sicher) Initialize(scanReader io.Reader) error {
108108
encFile.Truncate(0)
109109
break
110110
} else {
111-
os.Remove(keyFile.Name())
111+
cleanUpFile(keyFile.Name())
112112
fmt.Println("Exiting. Leaving credentials file unmodified")
113113
return nil
114114
}
@@ -196,7 +196,7 @@ func (s *sicher) Edit(editor ...string) error {
196196
err = credFileLock.TryLock()
197197
if err != nil {
198198
if err == fslock.ErrLocked {
199-
return fmt.Errorf("%s: File is in use in another terminal", err)
199+
return fmt.Errorf("file is in use in another terminal")
200200
}
201201
return fmt.Errorf("error locking file: %s", err)
202202
}

0 commit comments

Comments
 (0)