From dcb1bd4d977379476880be46a2a3f7f20e1d6475 Mon Sep 17 00:00:00 2001
From: ralismark <13449732+ralismark@users.noreply.github.com>
Date: Sun, 19 Feb 2023 00:39:36 +1100
Subject: [PATCH] Make fortune.6 man page use correct template

---
 fortune-mod/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fortune-mod/CMakeLists.txt b/fortune-mod/CMakeLists.txt
index 9d301d8..83ff776 100644
--- a/fortune-mod/CMakeLists.txt
+++ b/fortune-mod/CMakeLists.txt
@@ -203,9 +203,9 @@ SET (_my_args)
 LIST(APPEND _my_args "--cookiedir" "${COOKIEDIR}" "--ocookiedir" "${OCOOKIEDIR}" "--output" "${_my_man_page}")
 IF (NO_OFFENSIVE)
     LIST(APPEND _my_args "--without-offensive")
-    SET(_MY_IN "${CMAKE_CURRENT_SOURCE_DIR}/fortune/fortune_with_offensive.template.man")
-ELSE()
     SET(_MY_IN "${CMAKE_CURRENT_SOURCE_DIR}/fortune/fortune_without_offensive.template.man")
+ELSE()
+    SET(_MY_IN "${CMAKE_CURRENT_SOURCE_DIR}/fortune/fortune_with_offensive.template.man")
 ENDIF()
 LIST(APPEND _my_args "--input" "${_MY_IN}")
 
-- 
2.40.0