aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-02-28 10:14:41 +0100
committerKarel Kočí <karel.koci@nic.cz>2018-02-28 10:14:41 +0100
commit1c2e154fb4fc6f4630018d6492f51e73f44eb11e (patch)
treee03b1fe201b7d10f454febc2676e9c043f5541b1
parent94f37bac35bc01e087d24cab5745d3311b87e4b5 (diff)
downloadturris-myrepo-1c2e154fb4fc6f4630018d6492f51e73f44eb11e.tar.gz
turris-myrepo-1c2e154fb4fc6f4630018d6492f51e73f44eb11e.tar.bz2
turris-myrepo-1c2e154fb4fc6f4630018d6492f51e73f44eb11e.zip
Fix repository rewrite
There was missing not in condition. Now it correctly removes old version before it deploys new one.
-rwxr-xr-xbuild_repo.sh4
1 files 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"