Backuppy/install.sh
Paul S f9dc51340c check if user paths from user-input exists and differ
- CLI-mode: check if user paths from user-input exists
- CLI-mode: prevent identical source and target path
2021-05-11 19:07:21 +02:00

30 lines
756 B
Bash
Executable file

#!/bin/bash
# """
# project: Backuppy
# version: 0.10
# 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
# Check if PIP module "PySide2" is installed
if ! pip list | grep PySide2> /dev/null
then
# Install PySide2
echo -e "Installing necessary PySide2 package for GUI-mode."
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