Print the path to the current folder if outputsubfolder is an empty string.
authorSteven Black <redacted>
Sun, 13 Jul 2025 02:16:23 +0000 (22:16 -0400)
committerSteven Black <redacted>
Sun, 13 Jul 2025 02:16:23 +0000 (22:16 -0400)
updateHostsFile.py

index f08dfcf437b48346762d1e9382366865c7abf9b8..a350fe867ef394c973fce3311bda0b24fd657dec 100755 (executable)
@@ -327,7 +327,7 @@ def main():
 
     print_success(
         "Success! The hosts file has been saved in folder "
-        + outputsubfolder
+        + (outputsubfolder if outputsubfolder else "./")
         + "\nIt contains "
         + "{:,}".format(numberofrules)
         + " unique entries."
git clone https://git.99rst.org/PROJECT