Add conditions to pre/post install
This commit is contained in:
parent
96ddc64929
commit
c0d8ef25fe
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue