add quotes for spaces
This commit is contained in:
8
note.sh
8
note.sh
@@ -9,9 +9,9 @@ else
|
||||
FILENAME="${1}.md"
|
||||
fi
|
||||
|
||||
cp -pr ${TEMPLATE} ${NOTES_INBOX}/${FILENAME}
|
||||
chmod 600 ${NOTES_INBOX}/${FILENAME}
|
||||
cp -pr ${TEMPLATE} ${NOTES_INBOX}/"${FILENAME}"
|
||||
chmod 600 ${NOTES_INBOX}/"${FILENAME}"
|
||||
DATE=$(date +%Y-%m-%d)
|
||||
sed -i "s/created:.*/created: ${DATE}/g" ${NOTES_INBOX}/${FILENAME}
|
||||
sed -i "s/created:.*/created: ${DATE}/g" ${NOTES_INBOX}/"${FILENAME}"
|
||||
cd ${NOTES_INBOX}
|
||||
nvim -c "LivePreview start" ${FILENAME}
|
||||
nvim -c "LivePreview start" "${FILENAME}"
|
||||
|
||||
Reference in New Issue
Block a user