Skip to content

Commit

Permalink
care newer busybox, which says another error message
Browse files Browse the repository at this point in the history
  • Loading branch information
astj committed Jun 19, 2019
1 parent a8bf455 commit ea8ba38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func init() {
KillAfter: 1 * time.Second,
}
exitSt, _, stderr, err := tio.Run()
if err == nil && exitSt.Code != 0 && strings.Contains(stderr, "df: invalid option -- ") {
if err == nil && exitSt.Code != 0 && (strings.Contains(stderr, "df: invalid option -- ") || strings.Contains(stderr, "df: unrecognized option: ")) {
dfOpt = "-k"
}
}
Expand Down

0 comments on commit ea8ba38

Please sign in to comment.