Skip to content

Commit ae9d802

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

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,14 +40,14 @@ $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
# Find current update channel from config
4747
$branch = $(get_config SCOOP_BRANCH)
4848
if (!$branch) {
4949
$branch = "master"
50-
set_config SCOOP_BRANCH "$branch"
50+
set_config SCOOP_BRANCH "$branch" | Out-Null
5151
}
5252

5353
if(($PSVersionTable.PSVersion.Major) -lt 5) {
@@ -143,7 +143,7 @@ function update_scoop() {
143143
Pop-Location
144144
}
145145

146-
set_config lastupdate ([System.DateTime]::Now.ToString('o'))
146+
set_config lastupdate ([System.DateTime]::Now.ToString('o')) | Out-Null
147147
success 'Scoop was updated successfully!'
148148
}
149149

0 commit comments

Comments
 (0)