From ac4f5eab34ab8a95cd35beed498bb1d7bac854a7 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 5 Oct 2025 22:56:17 +0200 Subject: update --- phlogthis | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'phlogthis') diff --git a/phlogthis b/phlogthis index 0cccfb0..b080b34 100755 --- a/phlogthis +++ b/phlogthis @@ -23,7 +23,8 @@ dirname="$filedate-$filetitle" # make local and remote dirs mkdir $root/$dirname -#ssh spike mkdir $remoteroot/$dirname +echo "creating remote directory..." +ssh spike mkdir $remoteroot/$dirname # edit text micro +4:1 "$editfile" @@ -38,8 +39,25 @@ sed -i "1s/^/$header/" $article dest="$root/$dirname/gophermap" mv "$article" "$dest" rm $editfile + +clear +cat $dest + +echo " " +read -p "Do you want to edit this text? : " choix1 + +if [ "$choix1" != "n" ] ; then + clear + micro $dest +fi + echo "Article saved as $dest" -echo "Run phlogmap to update the main gophermap" + +read -p "Run phlogmap & phlogrss & gosend? ; " choix2 + +if [ "$choix2" != "n" ] ; then + phlogmap; phlogrss ; gosend +fi popd exit 0 -- cgit v1.2.3