bot pass is now an argument instead of being prompted

This commit is contained in:
root 2016-09-25 15:06:19 +02:00
parent 19a9145fae
commit 5b25370f85

View File

@ -1,5 +1,4 @@
#!/bin/sh
read -s -p "bot password ?" botpass
mkdir build
while true
do
@ -8,6 +7,6 @@ do
qmake-qt5 ../SparrowBot.pro
make
cd bin
./SparrowBot -nogui nick=SirSparrow pass=$botpass chan=epicsparrow server=irc.freenode.net port=6667
./SparrowBot -nogui nick=SirSparrow pass=$1 chan=epicsparrow server=irc.freenode.net port=6667
cd ../..
done