Skip to content

Commit 75a01eb

Browse files
small changes to build script
1 parent 25e926d commit 75a01eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
set -x
5+
36
my_arch=$(arch)
4-
podman rm el9
7+
rm -f el9-${my_arch}.tar el9-${my_arch}.tar.gz
8+
podman rm -f el9
59
podman run -i --name el9 docker.io/eurolinux/eurolinux-9:latest < install-script.sh
610
podman export el9 > "el9-${my_arch}.tar"
711
tar -czf - "el9-${my_arch}.tar" | gzip > "el9-${my_arch}.tar.gz"
12+
set +x
13+
14+
echo "Generation finished! WSL images saved: el9-${my_arch}.tar.gz el9-${my_arch}.tar"

0 commit comments

Comments
 (0)