mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-29 06:09:31 -04:00
check for poetry installation and exit if no installation found
This commit is contained in:
parent
b2556a56e0
commit
c8a7cd02e1
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
|||
OS=$(uname -s)
|
||||
|
||||
if [ "$OS" == "Linux" ]; then
|
||||
# Check poetry installation and exit if no installation found.
|
||||
if ! command -v poetry 2>&1 >/dev/null
|
||||
then
|
||||
echo "Could not detect Poetry installation. Please make sure you install Poetry first.
|
||||
See https://python-poetry.org/docs/#installation or run pip3 install poetry"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# setup environment
|
||||
cd cli
|
||||
poetry install
|
||||
|
|
Loading…
Add table
Reference in a new issue