]> us-delaporte.pagekite.me Git - minion.git/commitdiff
Update to use $EDITOR
authorEdward Delaporte <edward@delaporte.us>
Wed, 3 Jun 2026 22:19:19 +0000 (17:19 -0500)
committerEdward Delaporte <edward@delaporte.us>
Wed, 3 Jun 2026 22:19:19 +0000 (17:19 -0500)
bin/mo
bin/moa

diff --git a/bin/mo b/bin/mo
index 7f4d04602418f87e44feacca25bfc6e6c53b409f..568dd3a7c0db1275d80f388412bc682f237a44f1 100755 (executable)
--- a/bin/mo
+++ b/bin/mo
@@ -1,7 +1,8 @@
 #!/usr/bin/bash
 year=`date +%Y`
 files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md")
-if [ !x"${EDITOR}" ]; then
+if [ -z ${EDITOR} ]; then
+       echo "EDITOR unset, defaulting to Nano"
        export EDITOR=nano
 fi
 $EDITOR $files
diff --git a/bin/moa b/bin/moa
index ea4ea99f46be531e0a9d923ef5feb3948a3941c3..0978a65d3a37bb062186e5abafdfc13880d384f5 100755 (executable)
--- a/bin/moa
+++ b/bin/moa
@@ -1,6 +1,7 @@
 #!/usr/bin/bash
 files=$(find $HOME/Journal -type f -iname "*$1*\.md")
-if [ !x"${EDITOR}" ]; then
+if [ -z ${EDITOR} ]; then
+       echo "EDITOR unset, defaulting to Nano"
        export EDITOR=nano
 fi
 $EDITOR $files