Only execute bootstrap script if we gotta

This commit is contained in:
Salt 2020-12-27 17:18:39 -06:00
parent d869d20e6b
commit 5add86cdd9
1 changed files with 4 additions and 2 deletions

View File

@ -93,8 +93,10 @@ arch-build() {
touch "$file"
chmod 0700 "$file"
done
curl "$script" -o "$bootstrap"
"$bootstrap" "$_optdest"
if ! [ -e "$_optdest"/dev/null ]; then
curl "$script" -o "$bootstrap"
"$bootstrap" "$_optdest"
fi
}
arch-chroot() {
# Jump to our new Arch chroot