Skip to content

Commit 03af5f4

Browse files
committed
Cleanup output directory
1 parent be75d72 commit 03af5f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rocky8/rocky8.pkr.hcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ build {
9090

9191
post-processor "shell-local" {
9292
inline = [
93-
"SOURCE=rocky8",
93+
"SOURCE=${source.name}",
9494
"OUTPUT=${var.filename}",
9595
"source ../scripts/fuse-nbd",
96-
"source ../scripts/fuse-tar-root"
96+
"source ../scripts/fuse-tar-root",
97+
"rm -rf output-${source.name}",
9798
]
9899
inline_shebang = "/bin/bash -e"
99100
}

0 commit comments

Comments
 (0)