Skip to content

Commit dec283b

Browse files
committed
add the -n flag to the 'ln' command, such that destination directories are overwritten
Signed-off-by: Tim Ramlot <[email protected]>
1 parent 0e71469 commit dec283b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/tools/00_mod.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ CURL := curl --silent --show-error --fail --location --retry 10 --retry-connrefu
183183
# can run the "link $(DOWNLOAD_DIR)/tools/xxx@$(XXX_VERSION)_$(HOST_OS)_$(HOST_ARCH)
184184
# to $(bin_dir)/tools/xxx" operation simultaneously without issues (both
185185
# will perform the action and the second time the link will be overwritten).
186-
LN := ln -fs
186+
#
187+
# -s = Create a symbolic link
188+
# -f = Force the creation of the link (replace existing links)
189+
# -n = If destination already exists, replace it, don't use it as a directory to create a new link inside
190+
LN := ln -fsn
187191

188192
upper_map := a:A b:B c:C d:D e:E f:F g:G h:H i:I j:J k:K l:L m:M n:N o:O p:P q:Q r:R s:S t:T u:U v:V w:W x:X y:Y z:Z
189193
uc = $(strip \

0 commit comments

Comments
 (0)