Skip to content

Commit

Permalink
Replaced Xidel option --quiet with --silent
Browse files Browse the repository at this point in the history
  • Loading branch information
vensko committed Jan 15, 2018
1 parent c180883 commit 74f0306
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apps
deps
dist
6 changes: 3 additions & 3 deletions pint.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function get-dist-link([Hashtable]$meta, [bool]$verbose)
write-host 'Extracting download link from' $dist
$out = ''
} else {
$quiet = '--quiet'
$silent = '--silent'
$out = '2>nul'
}

Expand All @@ -432,7 +432,7 @@ function get-dist-link([Hashtable]$meta, [bool]$verbose)
}

$xidel = get-dependency 'xidel'
$dist = & $env:ComSpec /d /c "$out `"$xidel`" $method $proxy --header=`"Referer: $dist`" --user-agent=`"$($env:PINT_USER_AGENT)`" `"$dist`" $follow $quiet --extract `"($link)[1]`""
$dist = & $env:ComSpec /d /c "$out `"$xidel`" $method $proxy --header=`"Referer: $dist`" --user-agent=`"$($env:PINT_USER_AGENT)`" `"$dist`" $follow $silent --extract `"($link)[1]`""

if ($lastexitcode -or !$dist -or !$dist.contains('://')) {
$dist = $null
Expand Down Expand Up @@ -593,7 +593,7 @@ function pint-file-install([string]$id, [string]$file, [string]$destDir, [string
if ($createdir = split-path $_) {
ensure-dir $createdir
}
ni (join-path $destDir $_) -type file -force | out-null
ni $createfile -type file -force | out-null
}
}
}
Expand Down

0 comments on commit 74f0306

Please sign in to comment.