Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBaulch committed Oct 15, 2024
1 parent 84e00fd commit d1da9c0
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@

### Documentation

- **changelog:** Add 'CHANGLOG.md' ([#4600](https://github.com/ScoopInstaller/Scoop/issues/4600))
- **changelog:** Add 'CHANGELOG.md' ([#4600](https://github.com/ScoopInstaller/Scoop/issues/4600))
- **changelog:** Rearrange CHANGELOG ([#4729](https://github.com/ScoopInstaller/Scoop/issues/4729))
- **changelog:** Link CHANGELOG headers to 'releases/tag' ([#4730](https://github.com/ScoopInstaller/Scoop/issues/4730))

Expand Down Expand Up @@ -569,7 +569,7 @@
- **autoupdate:** Add $urlNoExt and $basenameNoExt substitutions ([#3742](https://github.com/ScoopInstaller/Scoop/issues/3742))
- **config:** Add configuration option for default architecture ([#3778](https://github.com/ScoopInstaller/Scoop/issues/3778))
- **install:** Follow HTTP redirections when downloading a file ([#3902](https://github.com/ScoopInstaller/Scoop/issues/3902))
- **install:** Let pathes in 'env_add_path' be added ascendantly ([#3788](https://github.com/ScoopInstaller/Scoop/issues/3788), [#3976](https://github.com/ScoopInstaller/Scoop/issues/3976))
- **install:** Let paths in 'env_add_path' be added ascendantly ([#3788](https://github.com/ScoopInstaller/Scoop/issues/3788), [#3976](https://github.com/ScoopInstaller/Scoop/issues/3976))
- **list:** Display main bucket name ([#3759](https://github.com/ScoopInstaller/Scoop/issues/3759))
- **shim:** Add alt-shim support ([#3998](https://github.com/ScoopInstaller/Scoop/issues/3998))
- **scoop-checkup:** Add check_envs_requirements ([#3860](https://github.com/ScoopInstaller/Scoop/issues/3860))
Expand Down
2 changes: 1 addition & 1 deletion PSScriptAnalyzerSettings.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Severity = @('Error')

# Analyze **only** the following rules. Use IncludeRules when you want
# to invoke only a small subset of the defualt rules.
# to invoke only a small subset of the default rules.
# IncludeRules = @('PSAvoidDefaultValueSwitchParameter',
# 'PSMisleadingBacktick',
# 'PSMissingModuleManifestField',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ You can tweak the following `aria2` settings with the `scoop config` command:

## What sort of apps can Scoop install?

The apps that are most likely to get installed fine with Scoop are those referred to as "portable" apps. These apps are compressed files which can run standalone after being extracted. This type of apps does not produce side effects like changing the Windows Registry or placing files outside the app directory.
The apps that are most likely to get installed fine with Scoop are those referred to as "portable" apps. These apps are compressed files which can run standalone after being extracted. This type of app does not produce side effects like changing the Windows Registry or placing files outside the app directory.

Scoop also supports installer files and their uninstallation methods. Likewise, it can handle single-file apps and PowerShell scripts. These do not even need to be compressed. See the [runat](https://github.com/ScoopInstaller/Main/blob/master/bucket/runat.json) package for an example: it is simply a GitHub gist.

Expand Down
4 changes: 2 additions & 2 deletions bin/checkhashes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ foreach ($single in Get-ChildItem $Dir -Filter "$App.json" -Recurse) {
$file = $single.FullName
$manifest = parse_json $file

# Skip nighly manifests, since their hash validation is skipped
# Skip nightly manifests, since their hash validation is skipped
if ($manifest.version -eq 'nightly') { continue }

$urls = @()
Expand Down Expand Up @@ -166,7 +166,7 @@ foreach ($current in $MANIFESTS) {
$32bit_count = 0
$arm64_count = 0

# 64bit is get, donwloaded and added first
# 64bit is get, downloaded and added first
if ($platforms.Contains('64bit')) {
$64bit_count = $current.manifest.architecture.'64bit'.hash.Count
$current.manifest.architecture.'64bit'.hash = $actuals[0..($64bit_count - 1)]
Expand Down
2 changes: 1 addition & 1 deletion bin/missing-checkver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Check if manifest contains checkver and autoupdate property.
.PARAMETER App
Manifest name.
Wirldcard is supported.
Wildcard is supported.
.PARAMETER Dir
Location of manifests.
.PARAMETER SkipSupported
Expand Down
2 changes: 1 addition & 1 deletion bin/uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function do_uninstall($app, $global) {
rm_shims $app $manifest $global $architecture

# If a junction was used during install, that will have been used
# as the reference directory. Othewise it will just be the version
# as the reference directory. Otherwise it will just be the version
# directory.
$refdir = unlink_current (appdir $app $global)

Expand Down
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ function Get-AbsolutePath {
Path to manipulate
.OUTPUTS
System.String
Absolute path, may or maynot existed
Absolute path, may or may not existed
#>
[CmdletBinding()]
[OutputType([string])]
Expand Down
4 changes: 2 additions & 2 deletions lib/decompress.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ function Expand-7zipArchive {
}
if ($Removal) {
if (($Path -replace '.*\.([^\.]*)$', '$1') -eq '001') {
# Remove splitted 7-zip archive parts
# Remove split 7-zip archive parts
Get-ChildItem "$($Path -replace '\.[^\.]*$', '').???" | Remove-Item -Force
} elseif (($Path -replace '.*\.part(\d+)\.rar$', '$1')[-1] -eq '1') {
# Remove splitted RAR archive parts
# Remove split RAR archive parts
Get-ChildItem "$($Path -replace '\.part(\d+)\.rar$', '').part*.rar" | Remove-Item -Force
} else {
# Remove original archive file
Expand Down
2 changes: 1 addition & 1 deletion lib/depends.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Get-Dependency {
List of app's dependencies
.NOTES
When pipeline input is used, the output will have duplicate items, and should be filtered by 'Select-Object -Unique'.
ALgorithm: http://www.electricmonk.nl/docs/dependency_resolving_algorithm/dependency_resolving_algorithm.html
Algorithm: http://www.electricmonk.nl/docs/dependency_resolving_algorithm/dependency_resolving_algorithm.html
#>
[CmdletBinding()]
[OutputType([Object[]])]
Expand Down
2 changes: 1 addition & 1 deletion lib/download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function Invoke-CachedAria2Download ($app, $version, $manifest, $architecture, $
# Skip blank lines
if ([String]::IsNullOrWhiteSpace($_)) { return }

# Prevent potential overlaping of text when one line is shorter
# Prevent potential overlapping of text when one line is shorter
$len = $Host.UI.RawUI.WindowSize.Width - $_.Length - 20
$blank = if ($len -gt 0) { ' ' * $len } else { '' }
$color = 'Gray'
Expand Down
2 changes: 1 addition & 1 deletion lib/json.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function json_path_legacy([String] $json, [String] $jsonpath, [Hashtable] $subst
$jsonpath.split('.') | ForEach-Object {
$el = $_

# substitute the basename and version varibales into the jsonpath
# substitute the basename and version variables into the jsonpath
if ($null -ne $substitutions) {
$el = substitute $el $substitutions
}
Expand Down
6 changes: 3 additions & 3 deletions libexec/scoop-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# The 'current' version alias will not be used. Shims and shortcuts will point to specific version instead.
#
# scoop_repo: http://github.com/ScoopInstaller/Scoop
# Git repository containining scoop source code.
# Git repository containing scoop source code.
# This configuration is useful for custom forks.
#
# scoop_branch: master|develop
Expand Down Expand Up @@ -137,15 +137,15 @@
# See: 'https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-retry-wait'
#
# aria2-split: 5
# Number of connections used for downlaod.
# Number of connections used for download.
# See: 'https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-s'
#
# aria2-max-connection-per-server: 5
# The maximum number of connections to one server for each download.
# See: 'https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-x'
#
# aria2-min-split-size: 5M
# Downloaded files will be splitted by this configured size and downloaded using multiple connections.
# Downloaded files will be split by this configured size and downloaded using multiple connections.
# See: 'https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-k'
#
# aria2-options:
Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $specific_versions_paths = $specific_versions | ForEach-Object {
}
$apps = @((@($specific_versions_paths) + $difference) | Where-Object { $_ } | Select-Object -Unique)

# remember which were explictly requested so that we can
# remember which were explicitly requested so that we can
# differentiate after dependencies are added
$explicit_apps = $apps

Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if (!$apps) { exit 0 }
}
}

# purge persistant data
# purge persistent data
if ($purge) {
Write-Host 'Removing persisted data.'
$persist_dir = persistdir $app $global
Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-virustotal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Function Get-VirusTotalResultByUrl ($url, $app) {
# - $url: where file to check can be downloaded
# - $app: Name of the application (used for reporting)
# - $do_scan: [boolean flag] whether to actually submit to VirusTotal
# This is a parameter instead of conditionnally calling
# This is a parameter instead of conditionally calling
# the function to consolidate the warning message
# - $retrying: [boolean] Optional, for internal use to retry
# submitting the file after a delay if the rate limit is
Expand Down
4 changes: 2 additions & 2 deletions test/Scoop-Decompress.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ Describe 'Decompression function' -Tag 'Scoop', 'Windows', 'Decompress' {
(Get-ChildItem $to).Count | Should -Be 1
}

It 'extract splited 7z archives (.001, .002, ...)' {
It 'extract split 7z archives (.001, .002, ...)' {
$to = test_extract 'Expand-7zipArchive' $test5_1
$to | Should -Exist
"$to\empty" | Should -Exist
(Get-ChildItem $to).Count | Should -Be 1
}

It 'extract splited RAR archives (.part01.rar, .part02.rar, ...)' {
It 'extract split RAR archives (.part01.rar, .part02.rar, ...)' {
$to = test_extract 'Expand-7zipArchive' $test6_1
$to | Should -Exist
"$to\dummy" | Should -Exist
Expand Down

0 comments on commit d1da9c0

Please sign in to comment.