]> fortfriendship.online Git - gnargle.github.io.git/blobdiff - RSSGen/Program.cs
new entry! also more linux fixes for the rssgen
[gnargle.github.io.git] / RSSGen / Program.cs
index 19f6832f2b59a8b5a476f019cba08abda86e8afa..b6c16b016d37622515e7be67bd2e3ae0347e3e7c 100644 (file)
@@ -99,7 +99,16 @@ foreach (var file in fileInfos)
 
 var output = Generator.SerializeRSS(myRSS);
 
-var rssPath = Path.Combine(Directory.GetCurrentDirectory(), "../../../../feed.xml");
+var rssPath = String.Empty;
+
+if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+{
+    rssPath = Path.Combine(Directory.GetCurrentDirectory(), "../feed.xml");
+}
+else
+{
+    rssPath = Path.Combine(Directory.GetCurrentDirectory(), "../../../../feed.xml");
+}
 
 if (File.Exists(rssPath))
 {