Skip to content

Commit

Permalink
fix setup.sh failing on macOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
rawgni committed Aug 18, 2016
1 parent 8eba07a commit 81097f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@
* net8q
* SyncX
* umbreon222
* rawgni
13 changes: 4 additions & 9 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,10 @@ Input location
" location
read -p "Input gmapkey
" gmapkey
cp -f configs/config.json.example configs/config.json && chmod 755 configs/config.json
if [ "$auth" = "2" ] || [ "$auth" = "ptc" ]
then
sed -i "s/google/ptc/g" configs/config.json
fi
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
[[ $auth = "2" || $auth = "ptc" ]] && auth="ptc" || auth="google"
sed -e "s/YOUR_USERNAME/$username/g" -e "s/YOUR_PASSWORD/$password/g" \
-e "s/SOME_LOCATION/$location/g" -e "s/GOOGLE_MAPS_API_KEY/$gmapkey/g" \
-e "s/google/$auth/g" configs/config.json.example > configs/config.json
echo "Edit ./configs/config.json to modify any other config."
}

Expand Down

0 comments on commit 81097f1

Please sign in to comment.