diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-10-05 22:56:17 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-10-05 22:56:17 +0200 |
commit | ac4f5eab34ab8a95cd35beed498bb1d7bac854a7 (patch) | |
tree | 7a3b518a29a8ee79250c35593d57d7a57f5abe25 /phlogthis | |
parent | bf9e5595f4ee0a6c9ebb7a3a59a312b289446df8 (diff) | |
download | scripts-ac4f5eab34ab8a95cd35beed498bb1d7bac854a7.tar.gz scripts-ac4f5eab34ab8a95cd35beed498bb1d7bac854a7.tar.bz2 scripts-ac4f5eab34ab8a95cd35beed498bb1d7bac854a7.zip |
update
Diffstat (limited to 'phlogthis')
-rwxr-xr-x | phlogthis | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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 |