pshazz: fix add to profile when no profile

This commit is contained in:
Luke Sampson 2013-08-15 21:53:32 +10:00
parent 20b99fc06a
commit cb92bf2658

View File

@ -4,7 +4,7 @@
"extract_dir": "pshazz-master",
"bin": [ "bin\\pshazz.ps1" ],
"post_install":
"if(!(test-path $profile)) { '' >> $profile }
"if(!(test-path $profile)) { '' > $profile }
if((gc $profile | sls pshazz) -eq $null) {
write-host 'adding pshazz to your powershell profile'
(gc $profile -raw) + \"`r`ntry { `$null = gcm pshazz -ea stop; pshazz init 'default' } catch { }`r`n\" > $profile