aboutsummaryrefslogtreecommitdiff
path: root/create_notes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_notes.sh')
-rwxr-xr-xcreate_notes.sh4
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