Skip to content

Commit

Permalink
tabs vs spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardog committed Aug 19, 2023
1 parent e3050b8 commit 0b21284
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/psmodules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ function install_psmodule($manifest, $dir, $global) {
if (!$psmodule) { return }

if ($global) {
$targetdir = ensure $globalmodulesdir
$targetdir = ensure $globalmodulesdir
} else {
$targetdir = ensure $modulesdir;
ensure_in_psmodulepath $modulesdir $global
}
$targetdir = ensure $modulesdir;
ensure_in_psmodulepath $modulesdir $global
}

$module_name = $psmodule.name
if (!$module_name) {
Expand All @@ -37,11 +37,11 @@ function uninstall_psmodule($manifest, $dir, $global) {
$module_name = $psmodule.name
Write-Host "Uninstalling PowerShell module '$module_name'."

if ($global) {
$targetdir = ensure $globalmodulesdir
if ($global) {
$targetdir = ensure $globalmodulesdir
} else {
$targetdir = ensure $modulesdir;
}
$targetdir = ensure $modulesdir;
}

$linkfrom = "$targetdir\$module_name"
if (Test-Path $linkfrom) {
Expand Down

0 comments on commit 0b21284

Please sign in to comment.