sleep 2
# ask to reboot, upload error data if install failed
-if ! [ -e /opt/installfailed ] || ! [ -e /opt/installsuccess ] &&
- command -v installapplet; then
- notify-send "rebooting"
- sleep 2
- reboot
+if ! [ -e /opt/installfailed ] || ! [ -e /opt/installsuccess ]; then
+ if command -v installapplet; then
+ notify-send "rebooting"
+ sleep 2
+ reboot
+ fi
else
echo "installaion failed"
if command -v systemctl; then
echo "skipping artix hooks"
- exit
+ exit 0
fi
-echo "reverting pacaman fixes"
+echo "reverting pacman fixes"
sed -i '/Optional TrustAll/d' /etc/pacman.conf
sleep 1
fi
fi
-chrootscript "artix/postinstall" "reverting artix fixes"
+chrootscript "artix/postinstall" "checking for reverting artix fixes"
# mark installation as susccessful
touch /opt/installsuccess