Skip to content

Commit

Permalink
scripts: More verbose error message
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkroot committed Jul 12, 2019
1 parent 153f17f commit 5cc11d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/linux-install-service.sh
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion scripts/windows-install.bat
Expand Up @@ -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.
Expand Down

0 comments on commit 5cc11d7

Please sign in to comment.