Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Reorder dnvm.ps1 blocks to avoid read-before-write issues #446

Merged
merged 3 commits into from
Sep 22, 2015

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Sep 18, 2015

nits:

  • use constants a bit more consistently
  • remove trailing whitespace

- #422
- previously used `$env:DNX_HOME` or `$env:DNX_GLOBAL_HOME` when undefined
- also ignores `$env:DNX_HOME` values such as ";C:\ProgramData\Microsoft DNX"

nits:
- use constants a bit more consistently
- remove trailing whitespace
@dougbu
Copy link
Member Author

dougbu commented Sep 18, 2015

/cc @BrennanConroy

if(!$pf.EndsWith("\")) { $pf += "\" }
if($pf32 -and !$pf32.EndsWith("\")) { $pf32 += "\" }

$UserHome = $RuntimeHomes.Split(";") | Where-Object {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added Split() and earlier if ($RuntimeHomes) because this block was currently after $RuntimeHomes was an array, not a string.

- clear if invalid or if set when performing a setup
@dougbu dougbu force-pushed the dougbu/define.first.422 branch from 2f88ac7 to 416db7f Compare September 22, 2015 02:52
@dougbu
Copy link
Member Author

dougbu commented Sep 22, 2015

Updated; CI builds passing

@BrennanConroy
Copy link
Member

🚢 🇮🇹

@dougbu dougbu merged commit 416db7f into dev Sep 22, 2015
@dougbu
Copy link
Member Author

dougbu commented Sep 22, 2015

416db7f

@dougbu dougbu deleted the dougbu/define.first.422 branch September 22, 2015 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants