this should work
parent
c21583bfbb
commit
6d1542576a
@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "fuck"
|
||||
for noteDir in "$1/notes/*"; do
|
||||
echo $noteDir
|
||||
echo "noteDir: $noteDir"
|
||||
noteName=$(echo $noteDir| cut -d'/' -f3)
|
||||
sed -i "#Resources/attachments#notes/$notename#" $noteDir/indx.md
|
||||
echo $noteName
|
||||
notePath="$(echo $noteDir| cut -d'/' -f1-2)/$noteName"
|
||||
echo "noteName: $noteName"
|
||||
echo "notePath: $notePath"
|
||||
sed -i "s#Resources/attachments#notes/$noteName#" $notePath/index.md
|
||||
done
|
||||
|
Loading…
Reference in New Issue