debootstrap: Directory not empty

If the directory still contains files or subdirectories, the rmdir command does not remove the directory.
This commit is contained in:
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

View File

@ -20,7 +20,7 @@ bootstrap(){
--keyring "${STAGE_DIR}/files/raspberrypi.gpg" \ --keyring "${STAGE_DIR}/files/raspberrypi.gpg" \
"$1" "$2" "$3" || true "$1" "$2" "$3" || true
if [ -d "$2/debootstrap" ]; then if [ -d "$2/debootstrap" ]; then
rmdir "$2/debootstrap" rm -rf "$2/debootstrap"
fi fi
} }
export -f bootstrap export -f bootstrap