2024-01-23 17:01:52 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-02-18 20:36:24 +01:00
|
|
|
export LANG=en_US.UTF8
|
|
|
|
|
2024-01-24 20:27:01 +01:00
|
|
|
exec &> >(tee /tmp/pika-installer-gtk4-log)
|
|
|
|
|
2024-01-23 17:01:52 +01:00
|
|
|
if [[ -f /tmp/pika-installer-gtk4-target-manual.txt ]]
|
|
|
|
then
|
2024-02-20 10:32:31 +01:00
|
|
|
sudo /usr/lib/pika/pika-installer-gtk4/scripts/manual-partition-install.sh || sudo touch /tmp/pika-installer-gtk4-fail.txt
|
2024-01-23 17:01:52 +01:00
|
|
|
else
|
|
|
|
if [[ -f /tmp/pika-installer-gtk4-target-auto.txt ]]
|
|
|
|
then
|
2024-02-20 10:32:31 +01:00
|
|
|
sudo /usr/lib/pika/pika-installer-gtk4/scripts/automatic-partition-install.sh || sudo touch /tmp/pika-installer-gtk4-fail.txt
|
2024-01-23 17:01:52 +01:00
|
|
|
else
|
2024-02-20 10:32:31 +01:00
|
|
|
echo "critical installer error" && sudo touch /tmp/pika-installer-gtk4-fail.txt && exit 1
|
2024-01-23 17:01:52 +01:00
|
|
|
fi
|
2024-01-24 20:27:01 +01:00
|
|
|
fi
|