From 6673bb4c1940ce5d9c715d500299c3bbd951a651 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 26 Dec 2023 05:53:54 +0100 Subject: [PATCH] [CI/CD] Always copy new apt repo root. --- .drone.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 128c9b3cb..48d3a93ea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -721,12 +721,9 @@ steps: - echo "-- Updating the apt repo root" - export OLD_APT_ROOT="$REPOS_ROOT/oldapt" - - | - if [ ! -d "$OLD_APT_ROOT" ]; then - mv "$APT_ROOT" "$OLD_APT_ROOT" - mv "$TMP_APT_ROOT" "$APT_ROOT" - rm -rf "$OLD_APT_ROOT" - fi + - rm -rf "$OLD_APT_ROOT" + - mv "$APT_ROOT" "$OLD_APT_ROOT" + - mv "$TMP_APT_ROOT" "$APT_ROOT" - chmod -R a+r "$APT_ROOT" - chmod a+x "$APT_ROOT"