From d4bf2099dfbd1576c25f1ee62aea1b302f6fcab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 26 May 2025 10:40:03 +0200 Subject: [PATCH] workflows: Fix updating symlinks to directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updating symlink to directories requires an extra flag to ln. Without the flag, if a symlink already exists and points to a directory, a new symlink is created under that directory instead of updating the symlink. Signed-off-by: Loïc Minier --- .github/workflows/linux.yml | 2 +- .github/workflows/u-boot.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 308a1205..50e6458a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -79,7 +79,7 @@ jobs: cp -av artifacts/* "${BUILD_DIR}" # create or update linux-deb-latest symlink mkdir -vp /fileserver-downloads/qcom-deb-images - ln -svf "../${BUILD_ID}" /fileserver-downloads/qcom-deb-images/linux-deb-latest + ln -fnsv "../${BUILD_ID}" /fileserver-downloads/qcom-deb-images/linux-deb-latest # perhaps help NFS sync sync diff --git a/.github/workflows/u-boot.yml b/.github/workflows/u-boot.yml index 9e4ad35c..ddfbd290 100644 --- a/.github/workflows/u-boot.yml +++ b/.github/workflows/u-boot.yml @@ -81,7 +81,7 @@ jobs: # remove what used to be a directory and create/update symlink to # point to latest build rm -rvf u-boot-rb1-latest - ln -svf "../${BUILD_ID}" u-boot-rb1-latest + ln -fnsv "../${BUILD_ID}" u-boot-rb1-latest ) # perhaps help NFS sync sync