mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-29 14:19:30 -04:00
check for golang installation and exit if no installation found
This commit is contained in:
parent
66199a858b
commit
875e346225
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,14 @@ if [ "$OS" == "Linux" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check golang installation and exit if no installation found.
|
||||||
|
if ! command -v go 2>&1 >/dev/null
|
||||||
|
then
|
||||||
|
echo "Could not detect Go installation. Please make sure you install Go first.
|
||||||
|
See https://go.dev/doc/install"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# setup environment
|
# setup environment
|
||||||
cd cli
|
cd cli
|
||||||
poetry install
|
poetry install
|
||||||
|
|
Loading…
Add table
Reference in a new issue