Check /debootstrap exists before trying to remove

pull/213/head^2
Serge Schneider 2018-10-15 09:12:13 +01:00
parent 33e94c46f3
commit f8b629d6c7
1 changed files with 3 additions and 1 deletions

View File

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