Skip to content

Commit

Permalink
Fix path of shells in install.sh (#3393)
Browse files Browse the repository at this point in the history
* Update install.sh

Fix path

* Update setup.sh

fix path

* Update run.sh

fix path
  • Loading branch information
simonsmh authored and elicwhite committed Aug 10, 2016
1 parent 310f578 commit b3f9e0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
pokebotpath=$(pwd)
pokebotpath=$(cd "$(dirname "$0")"; pwd)
cd $pokebotpath
if [ -f /etc/debian_version ]
then
Expand All @@ -17,7 +17,9 @@ echo "You are on Mac os"
sudo brew update
sudo brew install --devel protobuf
else
echo "Nothing happend."
echo "Please check if you have python pip protobuf gcc make installed on your device."
echo "Wait 5 seconds to continue or Use ctrl+c to interrupt this shell."
sleep 5
fi
pip install virtualenv
cd $pokebotpath
Expand All @@ -36,7 +38,7 @@ mv libencrypt.so $pokebotpath/encrypt.so
cd ../..
rm -rf pgoencrypt.tar.gz
rm -rf pgoencrypt
echo "Install complete."
echo "Install complete. Starting to generate config.json."
cd $pokebotpath
read -p "1.google 2.ptc
" auth
Expand All @@ -58,5 +60,5 @@ sed -i "s/YOUR_USERNAME/$username/g" configs/config.json
sed -i "s/YOUR_PASSWORD/$password/g" configs/config.json
sed -i "s/SOME_LOCATION/$location/g" configs/config.json
sed -i "s/GOOGLE_MAPS_API_KEY/$gmapkey/g" configs/config.json
echo "Edit configs/config.json to modify any other config. Use run.sh to run."
echo "Edit configs/config.json to modify any other config. Use run.sh ./configs/config.json to run."
exit 0
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
pokebotpath=$(pwd)
pokebotpath=$(cd "$(dirname "$0")"; pwd)
filename=""
if [ ! -z $1 ]; then
filename=$1
Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
pokebotpath=$(pwd)
backuppath=$(pwd)"/backup"
pokebotpath=$(cd "$(dirname "$0")"; pwd)
backuppath=$pokebotpath"/backup"

function Pokebotupdate () {
cd $pokebotpath
Expand Down

0 comments on commit b3f9e0f

Please sign in to comment.