Skip to content

Commit 47ef6a4

Browse files
Update install.sh
1 parent 9636ba4 commit 47ef6a4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

install.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/bash
22
sudo apt install npm
33
sudo apt install git
4-
git clone https://github.com/AnimePub/AniPub.git
5-
cd AniPun
6-
npm install
7-
npm run start
4+
if [ -v ~/AniPub ]
5+
then
6+
cd ~/AniPun
7+
npm install
8+
else
9+
echo "Couldn't Find AniPub .."
10+
echo "Downloading It"
11+
git clone https://github.com/AnimePub/AniPub.git
12+
cd ~/AniPun
13+
npm install
14+
fi
15+
npm run start

0 commit comments

Comments
 (0)