Temporary commit (moving computers)

This commit is contained in:
Jon Lewis
2016-08-27 14:27:44 -05:00
parent c709d3e8fb
commit 704980fa2b
2 changed files with 15 additions and 8 deletions

View File

@@ -152,7 +152,10 @@ function help {
}
function list(){
# This function, given a folder, $NOTE, will list the contents of $NOTE.
cd "$(dirname "$NOTES_DIR/$NOTE")"
# If not given a folder, it will list all notes in the store.
if [ -z "$NOTEBOOK" ]; then NOTEBOOK="."; fi
cd "$(dirname "$NOTES_DIR/$NOTEBOOK")"
find . -type f -name "*$EXT" | while read file; do
printf "%s\n" "$file"
done