1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00

Add conditions to pre/post install

This commit is contained in:
Nico Jensch 2020-11-12 14:22:31 +01:00
parent 96ddc64929
commit c0d8ef25fe

View file

@ -261,11 +261,17 @@ function upgrade2ultimate
fi fi
if [ -e "/tmp/setup-assistant/prepare.sh" ]; then
sh /tmp/setup-assistant/prepare.sh sh /tmp/setup-assistant/prepare.sh
fi
cat /tmp/setup-assistant/pkgs.txt | sed '/^$/d;s/[[:blank:]]//g' > /tmp/setup-assistant/pkgs-install.txt cat /tmp/setup-assistant/pkgs.txt | sed '/^$/d;s/[[:blank:]]//g' > /tmp/setup-assistant/pkgs-install.txt
alacritty -e sudo pacman "--needed -S - < /tmp/setup-assistant/pkgs-install.txt" alacritty -e sudo pacman "--needed -S - < /tmp/setup-assistant/pkgs-install.txt"
if [ -e "/tmp/setup-assistant/setup.sh" ]; then
sh /tmp/setup-assistant/setup.sh sh /tmp/setup-assistant/setup.sh
read -p "Press enter finish the setup!" fi
rm -rf /tmp/setup-assistant rm -rf /tmp/setup-assistant
} }