Skip to content

Commit

Permalink
Skip log deletion on error
Browse files Browse the repository at this point in the history
skip removing root dir in case of error to
preserve debootstrap.log

Signed-off-by: Abhishek Dubey <[email protected]>
  • Loading branch information
Abhishek Dubey authored and chantra committed Dec 12, 2023
1 parent d6329ad commit acc372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/mkrootfs_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ set -x

# Create a working directory and schedule its deletion.
root=$(mktemp -d -p "$PWD")
trap 'rm -r "$root"' EXIT
trap '[[ "$?" -eq "0" ]] && rm -r "$root"' EXIT

# Install packages.
packages=(
Expand Down

0 comments on commit acc372f

Please sign in to comment.