summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/common b/scripts/common
index f3b5950..ad095b8 100644
--- a/scripts/common
+++ b/scripts/common
@@ -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