Browse Source

Check /debootstrap exists before trying to remove

pull/207/merge
Serge Schneider 3 years ago
parent
commit
f8b629d6c7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      scripts/common

+ 3
- 1
scripts/common View File

@ -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…
Cancel
Save