File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 248
248
}
249
249
250
250
251
- writetoHuskrc () {
252
- cat << EOT >> ~/.huskyrc
251
+ writetoHuskyInit () {
252
+ cat << EOT >> ~/.config/husky/init.sh
253
253
254
254
255
255
# --------------------------------------------------------------------
@@ -493,15 +493,18 @@ printHeading "Installing Node and Angular CLI through NVM"
493
493
printStep " Node Sass" " npm install --location=global sass"
494
494
printStep " Node Gyp" " npm install --location=global node-gyp"
495
495
printDivider
496
- echo " ✔ Touch ~/.huskyrc"
497
- touch ~ /.huskyrc
496
+ echo " ✔ Ensure ~/.config/husky directory exists"
497
+ mkdir -p ~ /.config/husky
498
+ printDivider
499
+ echo " ✔ Touch ~/.config/husky/init.sh"
500
+ touch ~ /.config/husky/init.sh
498
501
printDivider
499
502
# Husky profile
500
- if grep --quiet " nvm" ~ /.huskyrc ; then
501
- echo " ✔ .huskyrc already includes nvm. Skipping"
503
+ if grep --quiet " nvm" ~ /.config/husky/init.sh ; then
504
+ echo " ✔ ~/.config/husky/init.sh already includes nvm. Skipping"
502
505
else
503
- writetoHuskrc
504
- echo " ✔ Add nvm to .huskyrc "
506
+ writetoHuskyInit
507
+ echo " ✔ Add nvm to ~/.config/husky/init.sh "
505
508
fi
506
509
printDivider
507
510
You can’t perform that action at this time.
0 commit comments