We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc97748 commit a21d024Copy full SHA for a21d024
__tasks/tasks/stitch_outbound_links.clj
@@ -101,9 +101,7 @@
101
102
(defn- fix-yaml-links [path dry-run?]
103
(let [parsed (yaml/parse-string (slurp path))
104
- updated (walk/postwalk
105
- update-node
106
- parsed)]
+ updated (walk/postwalk update-node parsed)]
107
(cond
108
(and (= parsed updated) dry-run?)
109
(u/log " ℹ️" (str "Dry run: No update to: " path))
@@ -126,8 +124,8 @@
126
124
127
125
(defn- crawl-data-directory
128
[f dry-run?]
129
- (doseq [file (concat (fs/glob "_data" "**/*.yaml")
130
- (fs/glob "_data" "**/*.yml"))]
+ (doseq [file (concat (fs/glob "." "_data/**.yaml")
+ (fs/glob "." "_data/**.yml"))]
131
(f (str file) dry-run?)))
132
133
(defn -main
0 commit comments