66# You can use '*' in place of <app> to update all apps.
77#
88# Options:
9- # -f, --force Force update even when there isn't a newer version
10- # -g, --global Update a globally installed app
11- # -i, --independent Don't install dependencies automatically
12- # -k, --no-cache Don't use the download cache
13- # -s, --skip Skip hash validation (use with caution!)
14- # -q, --quiet Hide extraneous messages
15- # -a, --all Update all apps (alternative to '*')
9+ # -f, --force Force update even when there isn't a newer version
10+ # -g, --global Update a globally installed app
11+ # -i, --independent Don't install dependencies automatically
12+ # -k, --no-cache Don't use the download cache
13+ # -s, --skip-hash-check Skip hash validation (use with caution!)
14+ # -q, --quiet Hide extraneous messages
15+ # -a, --all Update all apps (alternative to '*')
1616
1717. " $PSScriptRoot \..\lib\getopt.ps1"
1818. " $PSScriptRoot \..\lib\json.ps1" # 'save_install_info' in 'manifest.ps1' (indirectly)
@@ -28,11 +28,11 @@ if (get_config USE_SQLITE_CACHE) {
2828 . " $PSScriptRoot \..\lib\database.ps1"
2929}
3030
31- $opt , $apps , $err = getopt $args ' gfiksqa' ' global' , ' force' , ' independent' , ' no-cache' , ' skip' , ' quiet' , ' all'
31+ $opt , $apps , $err = getopt $args ' gfiksqa' ' global' , ' force' , ' independent' , ' no-cache' , ' skip-hash-check ' , ' quiet' , ' all'
3232if ($err ) { " scoop update: $err " ; exit 1 }
3333$global = $opt.g -or $opt.global
3434$force = $opt.f -or $opt.force
35- $check_hash = ! ($opt.s -or $opt.skip )
35+ $check_hash = ! ($opt.s -or $opt .' skip-hash-check ' )
3636$use_cache = ! ($opt.k -or $opt .' no-cache' )
3737$quiet = $opt.q -or $opt.quiet
3838$independent = $opt.i -or $opt.independent
0 commit comments