Browse Source

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

master
lksz 1 year ago
parent
commit
e14f00d98d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Setup-Profile.ps1

+ 2
- 2
Setup-Profile.ps1 View File

@@ -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…
Cancel
Save