Add dependency checks
This commit is contained in:
@@ -2,6 +2,42 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if ! command -v virtualenv &> /dev/null
|
||||
then
|
||||
echo "virtualenv could not be found, please install with:"
|
||||
echo "sudo apt install python3-virtualenv"
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! command -v wget &> /dev/null
|
||||
then
|
||||
echo "wget could not be found, please install with:"
|
||||
echo "sudo apt install wget"
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! command -v unzip &> /dev/null
|
||||
then
|
||||
echo "unzip could not be found, please install with:"
|
||||
echo "sudo apt install unzip"
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! command -v python3 &> /dev/null
|
||||
then
|
||||
echo "python3 could not be found, please install with:"
|
||||
echo "sudo apt install python3"
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! command -v pip3 &> /dev/null
|
||||
then
|
||||
echo "pip3 could not be found, please install with:"
|
||||
echo "sudo apt install pip3"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
# download minecraft data
|
||||
|
||||
if [ ! -d "minecraft_data" ]
|
||||
|
||||
Reference in New Issue
Block a user