Streamline setting of /home/szmedia/.local/share/powershell/Scripts during _setup

This commit is contained in:
lksz 2020-10-02 14:16:23 -04:00
rodič a4c4334550
revize e14f00d98d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání

Zobrazit soubor

@ -40,6 +40,8 @@ Get-Command Reload-MyScripts -ErrorAction SilentlyContinue | ForEach-Object { .
## _Setup Logic starts here
#######################################################################
. ProfileCode_common
if ( -not $NoGitClone -and -not (Test-Path $(Join-Path $MyPSScriptRoot '.git')) ) {
if ( -not [bool]$(Get-Command git -ErrorAction SilentlyContinue) ) {
throw "No git command found, you may either omit run with the -NoGitClone switch or install git and try again."
@ -409,8 +411,6 @@ $p = @($p[0], $MyPSScriptRoot) + $($p | Select-Object -Skip 1)
$env:PATH = $p -join $PathEnvDelimiter
}
. ProfileCode_common
$SetupFromWeb = [bool]$(@( $SetupFromWeb, $sfw, $LoadCode ) | Where-Object { $_ })
if ( -not $SetupFromWeb ) {