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

View File

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