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:
parent
d945d422d4
commit
e1f470ac7a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user