diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-03 22:23:52 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-03 22:31:04 -0600 |
commit | 24e9541e02be403bd63d71979240377be2ecb122 (patch) | |
tree | 889e8dba1bbd2dde64200c381c0951f152e10ac8 /new-post.sh | |
parent | 13737cf85d71f5c77a2f481ceb32a61826bc2a16 (diff) |
wifi passwords
Diffstat (limited to 'new-post.sh')
-rwxr-xr-x | new-post.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |