aboutsummaryrefslogtreecommitdiff
path: root/create_notes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_notes.sh')
-rwxr-xr-xcreate_notes.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/create_notes.sh b/create_notes.sh
index 9965593..452230e 100755
--- a/create_notes.sh
+++ b/create_notes.sh
@@ -9,8 +9,7 @@ jq -c '.data.nodes[]' |
while read -r nodes; do
id=$(echo "${nodes}" | jq -r '.id')
file=$(echo "${nodes}" | jq -r '.file')
- timestamp=$(echo "${file}" | cut -d'-' -f1)
- matching_file=$(find "${org_path}" -name "${timestamp}-*.org" -type f)
+ matching_file=$(find "${org_path}" -name "${file}" -type f)
if [[ -f "${matching_file}" ]]; then
cp -p "${matching_file}" "notes/${id}"