Check /debootstrap exists before trying to remove
This commit is contained in:
parent
33e94c46f3
commit
f8b629d6c7
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ bootstrap(){
|
|||
--arch armhf \
|
||||
--keyring "${STAGE_DIR}/files/raspberrypi.gpg" \
|
||||
"$1" "$2" "$3" || true
|
||||
rmdir "$2/debootstrap"
|
||||
if [ -d "$2/debootstrap" ]; then
|
||||
rmdir "$2/debootstrap"
|
||||
fi
|
||||
}
|
||||
export -f bootstrap
|
||||
|
||||
|
|
Loading…
Reference in a new issue