Ver Fonte

tools: fix stat symlink if destination already exists

SVN-Revision: 31072
Felix Fietkau há 13 anos atrás
pai
commit
d5234a74b6
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      tools/Makefile

+ 1 - 0
tools/Makefile

@@ -102,6 +102,7 @@ endef
 endif
 endif
 
 
 $(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
 $(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
+	@rm -f $@
 	@if stat --version > /dev/null 2>&1; then \
 	@if stat --version > /dev/null 2>&1; then \
 		ln -s `which stat` $@; \
 		ln -s `which stat` $@; \
 	elif gstat --version > /dev/null 2>&1; then \
 	elif gstat --version > /dev/null 2>&1; then \