瀏覽代碼

tools: fix stat symlink if destination already exists

SVN-Revision: 31072
Felix Fietkau 13 年之前
父節點
當前提交
d5234a74b6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tools/Makefile

+ 1 - 0
tools/Makefile

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