Skip to content

Commit d4bf209

Browse files
committed
workflows: Fix updating symlinks to directories
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 <[email protected]>
1 parent 9d346ea commit d4bf209

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
cp -av artifacts/* "${BUILD_DIR}"
8080
# create or update linux-deb-latest symlink
8181
mkdir -vp /fileserver-downloads/qcom-deb-images
82-
ln -svf "../${BUILD_ID}" /fileserver-downloads/qcom-deb-images/linux-deb-latest
82+
ln -fnsv "../${BUILD_ID}" /fileserver-downloads/qcom-deb-images/linux-deb-latest
8383
# perhaps help NFS sync
8484
sync
8585

.github/workflows/u-boot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
# remove what used to be a directory and create/update symlink to
8282
# point to latest build
8383
rm -rvf u-boot-rb1-latest
84-
ln -svf "../${BUILD_ID}" u-boot-rb1-latest
84+
ln -fnsv "../${BUILD_ID}" u-boot-rb1-latest
8585
)
8686
# perhaps help NFS sync
8787
sync

0 commit comments

Comments
 (0)