Skip to content

Commit daaf88d

Browse files
committed
refactor(config): Redirect set_config output to Out-Null
1 parent c62bdd7 commit daaf88d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

libexec/scoop-alias.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $command
6363
# add alias to config
6464
$aliases | Add-Member -MemberType NoteProperty -Name $name -Value $alias_file
6565

66-
set_config $script:config_alias $aliases
66+
set_config $script:config_alias $aliases | Out-Null
6767
}
6868

6969
function rm_alias($name) {
@@ -78,7 +78,7 @@ function rm_alias($name) {
7878
rm_shim $aliases.$name (shimdir $false)
7979

8080
$aliases.PSObject.Properties.Remove($name)
81-
set_config $script:config_alias $aliases
81+
set_config $script:config_alias $aliases | Out-Null
8282
} else {
8383
abort "Alias $name doesn't exist."
8484
}

libexec/scoop-update.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ $independent = $opt.i -or $opt.independent
4040
$repo = $(get_config SCOOP_REPO)
4141
if(!$repo) {
4242
$repo = "https://github.com/lukesampson/scoop"
43-
set_config SCOOP_REPO "$repo"
43+
set_config SCOOP_REPO "$repo" | Out-Null
4444
}
4545

4646
$branch = $(get_config SCOOP_BRANCH)
4747
if (!$branch) {
4848
$branch = "master"
49-
set_config SCOOP_BRANCH "$branch"
49+
set_config SCOOP_BRANCH "$branch" | Out-Null
5050
}
5151

5252
function update_scoop() {
@@ -109,7 +109,7 @@ function update_scoop() {
109109
Pop-Location
110110
}
111111

112-
set_config lastupdate ([System.DateTime]::Now.ToString('o'))
112+
set_config lastupdate ([System.DateTime]::Now.ToString('o')) | Out-Null
113113
success 'Scoop was updated successfully!'
114114
}
115115

0 commit comments

Comments
 (0)