From 6f880fd4e3ab6701845094613df166b1ff8b7250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 10 Oct 2018 16:07:25 +0200 Subject: turris{3,4}x: allow cleanup using CLEAN option --- templates/turris4x.run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/turris4x.run') diff --git a/templates/turris4x.run b/templates/turris4x.run index 7118362..34bac9f 100755 --- a/templates/turris4x.run +++ b/templates/turris4x.run @@ -12,7 +12,7 @@ fi curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash cat git-hash -if [ -f "$WORKSPACE/openwrt-git-hash" ] && cmp -s git-hash "$WORKSPACE/openwrt-git-hash"; then +if [ -z "$CLEAN" ] && [ -f "$WORKSPACE/openwrt-git-hash" ] && cmp -s git-hash "$WORKSPACE/openwrt-git-hash"; then echo_info "Using previous version of SDK" flock --shared "$WORKSPACE/openwrt-sdk.lock" \ cp -a "$WORKSPACE/openwrt-sdk" openwrt -- cgit v1.2.3