Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added title variable to friendi.sh

  • Loading branch information...
commit 0f45c1249ae1c098fa3d1e7814d85888f9c207b1 1 parent 54fea97
Tony Baldwin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 friendi.sh
View
4 friendi.sh
@@ -19,6 +19,8 @@ else
ud=$(cat $filedate.fpost)
fi
+read -p "Please enter a title: " title
+
# now to see if you want to crosspost elsewhere
echo "For the following question regarding crossposting, please enter the number 1 for yes, and 0 for no."
echo "If your friendica has the plugins, and you've configured them, you can crosspost to other blogs and sites."
@@ -40,7 +42,7 @@ read -p "Enter the domain of your Friendica site (i.e. http://friendica.somesite
# and this is the curl command that sends the update to the server
-if [[ $(curl -u $uname:$pwrd -d "status=$ud&ljpost_enable=$lj&posterous_enable=$pos&dwpost_enable=$dw&wppost_enable=$wp&tumblr_enable=$tum&facebook_enable=$fb&twitter_enable=$twit&statusnet_enable=$snet&source=friendi.sh" $url/api/statuses/update.xml | grep error) ]]; then
+if [[ $(curl -u $uname:$pwrd -d "status=$ud&title=$title&ljpost_enable=$lj&posterous_enable=$pos&dwpost_enable=$dw&wppost_enable=$wp&tumblr_enable=$tum&facebook_enable=$fb&twitter_enable=$twit&statusnet_enable=$snet&source=friendi.sh" $url/api/statuses/update.xml | grep error) ]]; then
# what does the server say?
Please sign in to comment.
Something went wrong with that request. Please try again.