aboutsummaryrefslogtreecommitdiff
path: root/phlogthis
diff options
context:
space:
mode:
Diffstat (limited to 'phlogthis')
-rwxr-xr-xphlogthis22
1 files changed, 20 insertions, 2 deletions
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