mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-13 05:02:48 +00:00
6d9bca805f
* makes changes to almost all main repo files to be in accordance with .editorconfig * some files in "test\fixtures\..." were left alone to avoid breaking tests * NOTE: whitespace changes *only* (`git diff -b` shows no changes)
20 lines
580 B
PowerShell
20 lines
580 B
PowerShell
# for development, update the installed scripts to match local source
|
|
. "$psscriptroot\..\lib\core.ps1"
|
|
|
|
$src = relpath ".."
|
|
$dest = ensure (versiondir 'scoop' 'current')
|
|
|
|
# make sure not running from the installed directory
|
|
if("$src" -eq "$dest") { abort "$(strip_ext $myinvocation.mycommand.name) is for development only" }
|
|
|
|
'copying files...'
|
|
$output = robocopy $src $dest /mir /njh /njs /nfl /ndl /xd .git tmp /xf .DS_Store last_updated
|
|
|
|
$output | ? { $_ -ne "" }
|
|
|
|
echo 'creating shim...'
|
|
shim "$dest\bin\scoop.ps1" $false
|
|
|
|
ensure_scoop_in_path
|
|
success 'scoop was refreshed!'
|