mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
pshazz: fix add to profile when no profile
This commit is contained in:
parent
20b99fc06a
commit
cb92bf2658
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user