From cc812261287a5694926b2e4f4476e312a24988f9 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Thu, 29 Dec 2016 21:03:27 +0000 Subject: [PATCH] Pass the -f flag to ln. This prevents it from failing if the symlink already exists. --- fortune-mod/datfiles/Makefile | 2 +- fortune-mod/datfiles/off/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fortune-mod/datfiles/Makefile b/fortune-mod/datfiles/Makefile index 71ba4a0..f53a082 100644 --- a/fortune-mod/datfiles/Makefile +++ b/fortune-mod/datfiles/Makefile @@ -41,7 +41,7 @@ cookies-stamp: for i in $(COOKIES) ; \ do \ $(STRFILE) $$i ; \ - ln -s $$i $$i.u8 || exit $? ; \ + ln -sf $$i $$i.u8 || exit $? ; \ done touch cookies-stamp diff --git a/fortune-mod/datfiles/off/Makefile b/fortune-mod/datfiles/off/Makefile index 3d5ecb5..97ee5af 100644 --- a/fortune-mod/datfiles/off/Makefile +++ b/fortune-mod/datfiles/off/Makefile @@ -22,7 +22,7 @@ ocookies-stamp: rotated-stamp rotated-stamp: for i in $(OCOOKIES_UNROTATED) ; \ - do $(ROT) < unrotated/$$i > rotated/$$i || exit $$? ; (cd rotated && ln -s $$i $$i.u8) ; done + do $(ROT) < unrotated/$$i > rotated/$$i || exit $$? ; (cd rotated && ln -sf $$i $$i.u8) ; done touch rotated-stamp check: all -- 2.40.0