Streamline setting of /home/szmedia/.local/share/powershell/Scripts during _setup
This commit is contained in:
parent
a4c4334550
commit
e14f00d98d
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue