Add Python3 and pip check to install.sh

This commit is contained in:
Oliver Blanthorn 2018-04-21 18:19:57 +01:00
parent adc91d6af2
commit aa5e5f3361
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -38,3 +38,15 @@ native_file_escaped=$(sed 's/[&/\]/\\&/g' <<< "$native_file")
sed -i.bak "s/REPLACE_ME_WITH_SED/$native_file_escaped/" "$manifest_file" sed -i.bak "s/REPLACE_ME_WITH_SED/$native_file_escaped/" "$manifest_file"
chmod +x $native_file chmod +x $native_file
# Requirements for native messenger
python_path=$(which python3)
pip_path=$(which pip3)
if [[ -x "$python_path" ]] && [[ -x "$pip_path" ]]; then
echo "Python 3 and pip found."
# pip3 install --user tinycss2
# put dependencies here
else
echo "Error: Python 3 and pip3 must exist in PATH."
echo "Please install them and run this script again."
fi