From 1c2e154fb4fc6f4630018d6492f51e73f44eb11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 28 Feb 2018 10:14:41 +0100 Subject: Fix repository rewrite There was missing not in condition. Now it correctly removes old version before it deploys new one. --- build_repo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_repo.sh b/build_repo.sh index c4bcf42..afa5c17 100755 --- a/build_repo.sh +++ b/build_repo.sh @@ -26,7 +26,7 @@ pull_sdk() { rsync -aW --inplace --delete .$1-sdk-clean/ .$1-sdk/ } -# TODO these links won't be valid for ever +# TODO these links won't be valid forever if [ "$BOARD" = "omnia" ] || [ "$BOARD" = "all" ]; then pull_sdk omnia "https://repo.turris.cz/omnia-nightly/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64.tar.bz2" fi @@ -116,7 +116,7 @@ fi pull_out() { echo -e "\e[1;34mMove and sign $1\e[0m" - [ -d repo/$1 ] || rm -rf repo/$1 + [ ! -d ./repo/$1 ] || rm -rf ./repo/$1 mkdir -p repo cp -r .$1-sdk/bin/$2/packages/base ./repo/$1 ./.$1-sdk/staging_dir/host/bin/usign -S -s key.sec -m "repo/$1/Packages" -- cgit v1.2.3