~gpanders/dotfiles

5629911cfe9a2fc4e566bab14373aec451244000 — Greg Anders 1 year, 9 months ago 5136277
Fix bash syntax error in 'note' command
1 files changed, 3 insertions(+), 3 deletions(-)

M note/.local/bin/note
M note/.local/bin/note => note/.local/bin/note +3 -3
@@ 44,7 44,7 @@ note() {
                return 1
            fi

            local title, note
            local title note
            title="${2// /_}"
            note="$NOTES_DIR"/"$title".md
            if [ ! -f "$note" ]; then


@@ 59,7 59,7 @@ note() {
                return 1
            fi

            local title, note
            local title note
            title="${2// /_}"
            note="$NOTES_DIR"/"$title".md
            if [ ! -f "$note" ]; then


@@ 77,7 77,7 @@ note() {
            fi

            shift
            local title, date, fname, file
            local title date fname file
            title="$*"
            date=$(date +%Y%m%d%H%M%S)
            fname="${date}_$(sed -e 's/[^[:alnum:]]/_/g' -e 's/^_\|_$//' <<< "$*" | tr -s '_')"