fixed list function and install script bugs

This commit is contained in:
Jon-William Lewis
2016-02-16 11:27:40 -06:00
parent b8c6f1e2b0
commit 6aad964a77
2 changed files with 12 additions and 4 deletions

View File

@@ -1,4 +1,10 @@
#!/bin/bash
function list(){
# This function, given a folder, $NOTE, will list the contents of $NOTE.
ls "$NOTES_DIR/${NOTE%.*}"
cd "$(dirname "$NOTES_DIR/$NOTE")"
find . -type f -name "*$EXT" | while read file; do
printf "%s\n" "$file"
done
}