From 356ef1ff4b0d8478166c5800c0ec30094af204e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Fri, 16 Aug 2024 01:43:35 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=93=E3=81=AE=E9=83=A8=E5=88=86=E3=81=AFLi?= =?UTF-8?q?nux=E3=81=A8Illumos=E3=81=A0=E3=81=91=E3=81=A7=E5=BF=85?= =?UTF-8?q?=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common.c b/src/common.c index 5514686..c1c426a 100644 --- a/src/common.c +++ b/src/common.c @@ -117,7 +117,9 @@ void delete_cache() { if (stat("/tmp/farfetch/os", &st) == 0) remove("/tmp/farfetch/os"); if (stat("/tmp/farfetch/host", &st) == 0) remove("/tmp/farfetch/host"); +#if defined(__linux__) || defined(__sunos) if (stat("/tmp/farfetch/distro", &st) == 0) remove("/tmp/farfetch/distro"); +#endif if (stat("/tmp/farfetch/cpu", &st) == 0) remove("/tmp/farfetch/cpu"); if (stat("/tmp/farfetch/gpu", &st) == 0) remove("/tmp/farfetch/gpu"); }