1
0
Fork 0
mirror of synced 2024-11-01 00:39:01 -04: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
sh /tmp/setup-assistant/prepare.sh if [ -e "/tmp/setup-assistant/prepare.sh" ]; then
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"
sh /tmp/setup-assistant/setup.sh
read -p "Press enter finish the setup!" if [ -e "/tmp/setup-assistant/setup.sh" ]; then
sh /tmp/setup-assistant/setup.sh
fi
rm -rf /tmp/setup-assistant rm -rf /tmp/setup-assistant
} }