diff options
Diffstat (limited to 'build_repo.sh')
-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" |