diff options
author | ikoamu <ikoamu@gmail.com> | 2024-01-24 22:06:51 +0900 |
---|---|---|
committer | ikoamu <ikoamu@gmail.com> | 2024-01-24 22:06:51 +0900 |
commit | 47e5381d86feee24e4566174e0793ddbd50e09eb (patch) | |
tree | f7a2a746f1a13e4728eb74ff9b854260c9a483e6 /create_notes.sh | |
parent | ccd88d170828ed67d4f9d012a511b4214fa1b1a7 (diff) |
Update create_notes.sh to copy files from a specified org directory
Diffstat (limited to 'create_notes.sh')
-rwxr-xr-x | create_notes.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/create_notes.sh b/create_notes.sh index 05c727a..8e51052 100755 --- a/create_notes.sh +++ b/create_notes.sh @@ -1,5 +1,7 @@ #!/bin/bash +orgPath=$1 + mkdir -p notes cat graphdata.json | @@ -7,5 +9,5 @@ jq -c '.data.nodes[]' | while read -r nodes; do id=$(echo "${nodes}" | jq -r '.id') file=$(echo "${nodes}" | jq -r '.file') - cp -p "${file}" "notes/${id}" + cp -p "${orgPath}/${file}" "notes/${id}" done
\ No newline at end of file |