aboutsummaryrefslogtreecommitdiff
path: root/build_repo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_repo.sh')
-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"