Alright fine fuck trap then

This commit is contained in:
Salt 2020-12-27 17:14:19 -06:00
parent 1db87c2ef2
commit 304d64e273

View File

@ -88,11 +88,10 @@ arch-build() {
# Download and unpack our minimal Arch image. Or pacstrap it or whatever
log "Bootstrapping an Arch installation"
script="https://raw.githubusercontent.com/tokland/arch-bootstrap/master/arch-bootstrap.sh"
bootstrap="$(mktemp)"
bootstrap="/tmp/tmp.$USER.$_name.arch-bootstrap.sh"
for file in "$bootstrap"; do
touch "$file"
chmod 0700 "$file"
trap cleanup "$file" EXIT
done
"$bootstrap" "$_optdest"
}