Skip to content
Permalink
Browse files

scripts: More verbose error message

  • Loading branch information...
iamkroot committed Jul 12, 2019
1 parent 153f17f commit 5cc11d778d806a744d6ec7064740cf3df851a0eb
Showing with 2 additions and 2 deletions.
  1. +1 −1 scripts/linux-install-service.sh
  2. +1 −1 scripts/windows-install.bat
@@ -35,7 +35,7 @@ pipenv sync || { echo >&2 "Error while creating venv"; exit 1; }
py_path=$(pipenv --py)

echo Setup complete. Starting device authentication.
pipenv run python -c "import trakt_interface; trakt_interface.get_access_token()" || exit 1;
pipenv run python -c "import trakt_interface; trakt_interface.get_access_token()" || echo "You can run this script again once the issue is fixed. Quitting." && exit 1;

echo
echo Creating system service.
@@ -34,7 +34,7 @@ for /F "tokens=* USEBACKQ" %%F in (`pipenv --venv`) do set venv_path=%%F
set py_path="%venv_path%\Scripts\pythonw.exe"

echo Setup complete. Starting device authentication.
pipenv run python -c "import trakt_interface; trakt_interface.get_access_token()" || goto :EOF
pipenv run python -c "import trakt_interface; trakt_interface.get_access_token()" || echo "You can run this script again once the issue is fixed. Quitting." && goto :EOF

echo
echo Adding to startup commands.

0 comments on commit 5cc11d7

Please sign in to comment.
You can’t perform that action at this time.