Adding common commands + Minor modifications
Reload-MyScripts modified to check for past aliases that might block it from working. Aliases dir created with some basic aliases Invoke-Sudo to make sudo command line calling simpler.
This commit is contained in:
parent
38aa7720de
commit
968b6c2bbb
11 changed files with 41 additions and 6 deletions
|
@ -66,7 +66,8 @@ if( -not $ScriptPaths ) {
|
|||
foreach( $local:p in $ScriptPaths ) {
|
||||
$local:parentPath = Split-Path -Parent $p;
|
||||
if( -not (Test-Path $p) -and -not (Test-Path $parentPath) ) {
|
||||
New-Item -Directory $parentPath
|
||||
Write-Verbose "Creating missing path $parentPath..."
|
||||
New-Item -Type Directory $parentPath
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue