mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-07-08 16:31:03 +00:00
19 lines
568 B
PowerShell
19 lines
568 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 /xf .DS_Store last_updated
|
|
|
|
$output | ? { $_ -ne "" }
|
|
|
|
echo 'creating shim...'
|
|
shim "$dest\bin\scoop.ps1"
|
|
|
|
ensure_scoop_in_path
|
|
success 'scoop was refreshed!' |