Implemented option "--gui" for graphical installer

This commit is contained in:
Paul S 2021-05-05 17:22:57 +02:00
parent d4327b64db
commit 4bc87b9642

View file

@ -2,9 +2,14 @@
# Variables # Variables
mydir=$PWD mydir=$PWD
langDE="languages/german.py" langDE="./languages/german.py"
langEN="languages/english.py" langEN="./languages/english.py"
# Check if graphical installer should be executed
if [ "$1" == "--gui" ]; then
python3 -B install.py
exit 0
else
# Intro # Intro
# language # language
echo -e "Hello, first of all, which language do you prefer: German [DE] or English [EN]?" echo -e "Hello, first of all, which language do you prefer: German [DE] or English [EN]?"
@ -98,3 +103,5 @@ echo "rsync -aqp --exclude-from=$mydir/exclude.txt $sourcedir $targetdir" >> Bac
echo -e "$outro1" echo -e "$outro1"
sleep 2 sleep 2
echo "$outro2" echo "$outro2"
exit 0
fi