reformatted to use my template
This commit is contained in:
19
scripts/mac-linux/install
Normal file
19
scripts/mac-linux/install
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
#change to ccurrent directory
|
||||
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||
cd ../..
|
||||
|
||||
#discord token
|
||||
[ ! -f "token.txt" ] && touch "token.txt"
|
||||
|
||||
if [ ! -s "token.txt" ]
|
||||
then
|
||||
printf "Enter your discord bot token: "
|
||||
read token
|
||||
printf $token > "token.txt"
|
||||
fi
|
||||
|
||||
#run
|
||||
npm install
|
||||
npm run build
|
||||
Reference in New Issue
Block a user