Skip to content

Commit 5e2a2d6

Browse files
authored
Merge pull request #2 from crivotz/fix-mistype
Fix mistype PERMENANTLY to PERMANENTLY
2 parents dbc8775 + 53a6360 commit 5e2a2d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/cmd/find.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func findCmdRun(args []string, opts findOptions) error {
215215
fmt.Printf("\nFound %d trashed files\n", len(box.Files))
216216

217217
if opts.doRemove {
218-
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMENANTLY? ") {
218+
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMANENTLY? ") {
219219
return errors.New("do nothing")
220220
}
221221
doRemove(box.Files)

internal/cmd/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func pruneCmdRun(opts pruneOptions) error {
192192
fmt.Printf("Current: %s, Deleted: %s, After: %s, Specified: %s\n\n", humanize.Bytes(total), humanize.Bytes(deleted), humanize.Bytes(total-deleted), humanize.Bytes(opts.maxTotalSize))
193193
}
194194

195-
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMENANTLY? ") {
195+
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMANENTLY? ") {
196196
return errors.New("do nothing")
197197
}
198198
doRemove(files)

internal/cmd/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func removeCmdRun(args []string, opts removeOptions) error {
7777
}
7878
fmt.Printf("\nFound %d trashed files\n", len(box.Files))
7979

80-
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMENANTLY? ") {
80+
if !opts.force && isTerminal && !tui.BoolPrompt("Are you sure you want to remove PERMANENTLY? ") {
8181
return errors.New("do nothing")
8282
}
8383

0 commit comments

Comments
 (0)