diff options
author | Allan Nordhøy <epost@anotheragency.no> | 2020-01-27 03:35:15 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2020-01-27 03:35:15 +0300 |
commit | f512aa58e8e55f8e622af24eec656c5556541b05 (patch) | |
tree | 5085c2bdcc7a647bde4132bb2da0ea3c31145c8f /scripts | |
parent | dc2c459bdfc93cfc4448adb6d4313a8fadb6456e (diff) |
Safer removal of build directory
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ubuntu-build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ubuntu-build.sh b/scripts/ubuntu-build.sh index 3d25164c2..b3e555fda 100755 --- a/scripts/ubuntu-build.sh +++ b/scripts/ubuntu-build.sh @@ -60,7 +60,7 @@ PKG_DIR="${PKG_NAME}_${PKG_VER}" echo $PKG_VER mkdir -p ${BDIR} -rm -rf ${BDIR}/* +rm -rf "${BDIR:?}/"* # exports repo without .git folder and other operative system clients git archive --format tar --prefix "${BDIR}/${PKG_DIR}/" HEAD | \ |