Skip to content

Commit

Permalink
Possibility to set another config with run script (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhtran0302 authored and Max Kaplan committed Jul 30, 2016
1 parent 8b887a1 commit 7b3f70f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
#!/usr/bin/env bash

# Assumes the config file is created and named config.json
# Starts PokemonGo-Bot
eval "python pokecli.py --config ./configs/config.json"
config=""

if [ ! -z $1 ]; then
config=$1
else
config="./configs/config.json"
if [ ! -f ${config} ]; then
echo -e "There's no ./configs/config.json file"
echo -e "Please create one or use another config file"
echo -e "./run.sh [path/to/config/file]"
exit 1
fi
fi

python pokecli.py --config ${config}

0 comments on commit 7b3f70f

Please sign in to comment.