mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-01 19:16:40 +00:00
22 lines
477 B
PowerShell
22 lines
477 B
PowerShell
. "$psscriptroot\supporting\util.ps1"
|
|
|
|
# used to work out how to modify default .vimrc using the right encoding
|
|
# does actually test any scoop code
|
|
|
|
$tmp = ensure tmp
|
|
$src = relpath fixtures\_vimrc
|
|
$dst = "$tmp\_vimrc"
|
|
|
|
if(test-path $dst) { rm $dst }
|
|
|
|
cp $src $dst
|
|
|
|
$append = "set shell=powershell.exe"
|
|
$append | out-file $dst -append -encoding ascii
|
|
|
|
if((gc $dst)[-1] -eq $append) {
|
|
write-host "ok" -f darkgreen
|
|
} else {
|
|
write-host ((gc $dst) | select -last 3) -f darkred
|
|
}
|