Skip to content

Commit e777d86

Browse files
authored
Merge branch 'main' into test/gnu-compat_write-errors_and_ls-time-style_4627
2 parents 30835b7 + e2f5dcb commit e777d86

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/freebsd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Run sccache-cache
4242
uses: mozilla-actions/sccache-action@v0.0.9
4343
- name: Prepare, build and test
44-
uses: vmactions/freebsd-vm@v1.2.3
44+
uses: vmactions/freebsd-vm@v1.2.4
4545
with:
4646
usesh: true
4747
sync: rsync
@@ -135,7 +135,7 @@ jobs:
135135
- name: Run sccache-cache
136136
uses: mozilla-actions/sccache-action@v0.0.9
137137
- name: Prepare, build and test
138-
uses: vmactions/freebsd-vm@v1.2.3
138+
uses: vmactions/freebsd-vm@v1.2.4
139139
with:
140140
usesh: true
141141
sync: rsync

src/uu/hashsum/src/hashsum.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ pub fn uu_app_custom() -> Command {
498498
/// hashsum is handled differently in build.rs
499499
/// therefore, this is different from other utilities.
500500
fn uu_app(binary_name: &str) -> (Command, bool) {
501-
let (mut command, is_hashsum_bin) = match binary_name {
501+
let (command, is_hashsum_bin) = match binary_name {
502502
// These all support the same options.
503503
"md5sum" | "sha1sum" | "sha224sum" | "sha256sum" | "sha384sum" | "sha512sum" => {
504504
(uu_app_common(), false)
@@ -519,12 +519,14 @@ fn uu_app(binary_name: &str) -> (Command, bool) {
519519
};
520520

521521
// If not called as generic hashsum, override the command name and usage
522-
if !is_hashsum_bin {
522+
let command = if is_hashsum_bin {
523+
command
524+
} else {
523525
let usage = translate!("hashsum-usage-specific", "utility_name" => binary_name);
524-
command = command
526+
command
525527
.help_template(uucore::localized_help_template(binary_name))
526-
.override_usage(format_usage(&usage));
527-
}
528+
.override_usage(format_usage(&usage))
529+
};
528530

529531
(command, is_hashsum_bin)
530532
}

0 commit comments

Comments
 (0)