summarylogtreecommitdiffstats
path: root/yt-cli.install
blob: 4be342bb3fcc8c077eba1689d4d666ad301d1b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install(){
  cd /usr/lib/node_modules/yt-cli
  which yarn >/dev/null 2>&1 && yarn install || npm install
  echo -e "\n[+] Thank you for using yt-cli!\n"
}

post_upgrade(){
  cd /usr/lib/node_modules/yt-cli
  which yarn >/dev/null 2>&1 && yarn install || npm install
}

pre_remove(){
  rm -rf /usr/lib/node_modules/yt-cli
}