From e1f470ac7a73c2f3f69400051fd1728049a95821 Mon Sep 17 00:00:00 2001 From: Nicholas Houle Date: Tue, 29 Jan 2019 16:18:31 -0700 Subject: [PATCH] debootstrap: Directory not empty If the directory still contains files or subdirectories, the rmdir command does not remove the directory. --- scripts/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common b/scripts/common index bdddead..2de9282 100644 --- a/scripts/common +++ b/scripts/common @@ -20,7 +20,7 @@ bootstrap(){ --keyring "${STAGE_DIR}/files/raspberrypi.gpg" \ "$1" "$2" "$3" || true if [ -d "$2/debootstrap" ]; then - rmdir "$2/debootstrap" + rm -rf "$2/debootstrap" fi } export -f bootstrap