tMakefile: only sync to /var/gopher/ if it exists - adamsgaard.dk - my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log
Files
Refs
README
LICENSE
---
commit 6d4eb44c62db0ba92fe44739d4927a7c4ca88cd6
parent 072ca354c31d496fceb7beafe002e8729b16b06b
Author: Anders Damsgaard 
Date:   Sun, 12 Dec 2021 21:18:59 +0100

Makefile: only sync to /var/gopher/ if it exists

Diffstat:
  M Makefile                            |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
t@@ -22,7 +22,7 @@ generate:
                 s,text/html,text,g; \
                 s,\.html,\.txt,g' \
                 $(output)/atom.xml > $(gopheroutput)/atom.xml;
-        rsync -a $(gopheroutput)/ /var/gopher/
+        if [ -d /var/gopher ]; then rsync -a $(gopheroutput)/ /var/gopher/; fi
 
 view:
         $(BROWSER) $(output)/index.html