Skip to content
Permalink
Browse files

dry run output: Println -> Printf as intended

Output before:

```
~/go/bin(master*) » sudo ./embiggen-disk -dry-run /
[dry-run] would've run sfdisk -f to set new partition table
[dry-run] would've run %v %v /usr/bin/btrfs [btrfs filesystem resize max /]
No changes made.
```

Output after:

```
~/go/bin(master*) » sudo ./embiggen-disk -dry-run /
[dry-run] would've run sfdisk -f to set new partition table
[dry-run] would've run /usr/bin/btrfs [btrfs filesystem resize max /]
No changes made.
```
  • Loading branch information...
gtklocker committed Jul 28, 2018
1 parent 93cce7e commit 39e0915488f2759986ce48583acb1805e611dfd1
Showing with 1 addition and 1 deletion.
  1. +1 −1 fs.go
2 fs.go
@@ -73,7 +73,7 @@ func (e fsResizer) DepResizer() (Resizer, error) {

func (e fsResizer) Resize() error {
if *dry {
fmt.Println("[dry-run] would've run %v %v", e.cmd.Path, e.cmd.Args)
fmt.Printf("[dry-run] would've run %v %v\n", e.cmd.Path, e.cmd.Args)
return nil
}
out, err := e.cmd.CombinedOutput()

0 comments on commit 39e0915

Please sign in to comment.
You can’t perform that action at this time.