"Browse"-button on directory-selection dialogs

This commit is contained in:
Paul S 2021-05-07 12:08:33 +02:00
parent a1c5fbf7ea
commit 845b7e9c9a
4 changed files with 115 additions and 51 deletions

View file

@ -1,14 +1,28 @@
#!/bin/bash
# """
# project: Backuppy
# version: 0.8
# file: install.sh
# summary: main entry shell script
# """
# Check if graphical installer should be executed
if [ "$1" == "--gui" ]; then
# Check if PIP ist installed
if ! command -v pip3> /dev/null
then
echo "Please install PIP on your system for the graphical version of Backuppy!"
exit
fi
pip3 install pyside2
# Check if PIP module "PySide2" is installed
if ! pip list | grep PySide2> /dev/null
then
# Install PySide2
pip3 install PySide2
fi
# Launch python installer in GUI mode
python3 -B install.py "$1"
else
# Launch python installer in CLI mode
python3 -B install.py
fi