Check /debootstrap exists before trying to remove
This commit is contained in:
@@ -19,7 +19,9 @@ bootstrap(){
|
||||
--arch armhf \
|
||||
--keyring "${STAGE_DIR}/files/raspberrypi.gpg" \
|
||||
"$1" "$2" "$3" || true
|
||||
if [ -d "$2/debootstrap" ]; then
|
||||
rmdir "$2/debootstrap"
|
||||
fi
|
||||
}
|
||||
export -f bootstrap
|
||||
|
||||
|
Reference in New Issue
Block a user