From 24e9541e02be403bd63d71979240377be2ecb122 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 3 May 2022 22:23:52 -0600 Subject: wifi passwords --- new-post.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'new-post.sh') diff --git a/new-post.sh b/new-post.sh index 44facd7..79c279a 100755 --- a/new-post.sh +++ b/new-post.sh @@ -25,6 +25,7 @@ while [ "$(echo $1 | head -c1)" = '-' -o "$#" -gt $numargs ]; do "-d") td=$1; shift;; "-V") VERBOSE=1;; "-x") DRY_RUN=1;; + "--no-editor") NO_EDITOR=1;; *) echo "Unknown option '$arg'" usage;; @@ -78,3 +79,7 @@ if [ ! -z $IMG_DIR ]; then mkdir -p "$imgDirName" fi fi + +if [ -z $DRY_RUN ] && [ -z $NO_EDITOR ]; then + exec $EDITOR "$postFileName" +fi -- cgit v1.2.3