From 083739a89ba55e64d35db3c14e4eca991e2cce11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 29 Aug 2018 13:10:10 +0200 Subject: turris4x: fix check if we should update sdk --- templates/turris4x.run | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'templates/turris4x.run') diff --git a/templates/turris4x.run b/templates/turris4x.run index e4f8e71..2c9e1ec 100755 --- a/templates/turris4x.run +++ b/templates/turris4x.run @@ -6,11 +6,11 @@ GWORKSPACE=~/workspace/turris4x MAKE="make -j4 IS_TTY=1 BUILD_LOG=1" -curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash laminar_self_lock sdk +curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash if [ -f "$WORKSPACE/openwrt-git-hash" ] && cmp -s git-hash "$WORKSPACE/openwrt-git-hash"; then echo_info "Using previous version of SDK" - cp -a "$WORKSPACE/sdk" openwrt + cp -a "$WORKSPACE/openwrt-sdk" openwrt cd openwrt else @@ -35,9 +35,9 @@ else echo_stage "Store SDK in workspace" cd .. - rm -rf "$WORKSPACE/sdk" - cp -a openwrt "$WORKSPACE/sdk" - cp git-hash "$WORKSPACE/git-hash" + rm -rf "$WORKSPACE/openwrt-sdk" + cp -a openwrt "$WORKSPACE/openwrt-sdk" + cp git-hash "$WORKSPACE/openwrt-git-hash" cd openwrt fi -- cgit v1.2.3