Skip to content
This repository was archived by the owner on Dec 27, 2019. It is now read-only.

Commit a3b9214

Browse files
committed
ignore nonexistent temp file
When `.temp` doesn't exist, `make` completes successfully but also produces the following output that is potentially confusing. ``` rm: cannot remove '.temp': No such file or directory makefile:6: recipe for target 'install' failed make: [install] Error 1 (ignored) ``` Ask `rm` not to prompt in this case.
1 parent b255e37 commit a3b9214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default: clean
44
echo "##END COINHIVE">>hostfile;
55
install:
66
cp /etc/hosts hosts;
7-
-rm .temp
7+
-rm -f .temp
88
sed '/##COINHIVE DOMAINS/,/##END COINHIVE/d' hosts >> .temp
99
cat hostfile >> .temp
1010
mv .temp hosts

0 commit comments

Comments
 (0)