Skip to content

Commit ae44476

Browse files
committed
support no-timestamp file
1 parent 0351190 commit ae44476

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: create_notes.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jq -c '.data.nodes[]' |
99
while read -r nodes; do
1010
id=$(echo "${nodes}" | jq -r '.id')
1111
file=$(echo "${nodes}" | jq -r '.file')
12-
timestamp=$(echo "${file}" | cut -d'-' -f1)
13-
matching_file=$(find "${org_path}" -name "${timestamp}-*.org" -type f)
12+
matching_file=$(find "${org_path}" -name "${file}" -type f)
1413

1514
if [[ -f "${matching_file}" ]]; then
1615
cp -p "${matching_file}" "notes/${id}"

0 commit comments

Comments
 (0)