debootstrap: Directory not empty

If the directory still contains files or subdirectories, the rmdir command does not remove the directory.
pull/249/head
Nicholas Houle 2019-01-29 16:18:31 -07:00 committed by GitHub
parent d945d422d4
commit e1f470ac7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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