Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-07-11 23:52:50 +0400
committerisaacs <i@izs.me>2013-07-11 23:52:50 +0400
commitf537545f1eac9beb8b0cc6c72038c051fd3c3cd9 (patch)
treeb898e298b835edc02e1ec4e58974efda6f4e27aa /Makefile
parent71fca106aa1fe91d151c4a56cb706f7943061c6e (diff)
doc: Don't copy to legacy url if already something there
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1f1c3bfc..094e391e1 100644
--- a/Makefile
+++ b/Makefile
@@ -161,7 +161,7 @@ doc-publish: doc
# legacy urls
for f in $(shell find html/doc/{cli,files,misc}/ -name '*.html'); do \
j=$(shell basename $$i | sed 's|^npm-||g'); \
- cp $$i doc/$$j; \
+ ! [ -f $$j ] && cp $$i doc/$$j; \
done
mkdir html/api
for f in $(shell find html/doc/api/ -name '*.html'); do \