Skip to content

Commit b3566f6

Browse files
committed
fix(scoop-download): Correct short option: -h -> -s
1 parent edaae8d commit b3566f6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- **autoupdate:** Copy `PSCustomObject`-type properties within `autoupdate` to prevent reference changes ([#5934](https://github.com/ScoopInstaller/Scoop/issues/5934))
1313
- **system:** Fix argument passing to `Split-PathLikeEnvVar()` in deprecated `strip_path()` ([#5937](https://github.com/ScoopInstaller/Scoop/issues/5937))
1414
- **scoop-cache:** Fix regression in 36026f18 ([#5944](https://github.com/ScoopInstaller/Scoop/issues/5944))
15+
- **scoop-download:** Correct short option: `-h` -> `-s` ([#5956](https://github.com/ScoopInstaller/Scoop/issues/5956))
1516

1617
## [v0.4.1](https://github.com/ScoopInstaller/Scoop/compare/v0.4.0...v0.4.1) - 2024-04-25
1718

libexec/scoop-download.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# Options:
1717
# -f, --force Force download (overwrite cache)
18-
# -h, --no-hash-check Skip hash verification (use with caution!)
18+
# -s, --no-hash-check Skip hash verification (use with caution!)
1919
# -u, --no-update-scoop Don't update Scoop before downloading if it's outdated
2020
# -a, --arch <32bit|64bit|arm64> Use the specified architecture, if the app supports it
2121

@@ -28,10 +28,10 @@ if (get_config USE_SQLITE_CACHE) {
2828
. "$PSScriptRoot\..\lib\database.ps1"
2929
}
3030

31-
$opt, $apps, $err = getopt $args 'fhua:' 'force', 'no-hash-check', 'no-update-scoop', 'arch='
31+
$opt, $apps, $err = getopt $args 'fsua:' 'force', 'no-hash-check', 'no-update-scoop', 'arch='
3232
if ($err) { error "scoop download: $err"; exit 1 }
3333

34-
$check_hash = !($opt.h -or $opt.'no-hash-check')
34+
$check_hash = !($opt.s -or $opt.'no-hash-check')
3535
$use_cache = !($opt.f -or $opt.force)
3636
$architecture = Get-DefaultArchitecture
3737
try {

0 commit comments

Comments
 (0)