diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-02-28 10:14:41 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-02-28 10:16:15 +0100 |
commit | 76a4d2682720c40641a429527ef689fcf88f9626 (patch) | |
tree | 7c1fd0a6baa3a96f71e14345afc78c6a1928e717 | |
parent | ce9114f8c93f287ea4926dd6302a5d70c8c1cc47 (diff) | |
download | turris-myrepo-76a4d2682720c40641a429527ef689fcf88f9626.tar.gz turris-myrepo-76a4d2682720c40641a429527ef689fcf88f9626.tar.bz2 turris-myrepo-76a4d2682720c40641a429527ef689fcf88f9626.zip |
Fix repository rewritemaster
There was missing not in condition. Now it correctly removes old version
before it deploys new one.
-rwxr-xr-x | build_repo.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build_repo.sh b/build_repo.sh index 57ef2b4..99dce00 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/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" |