fix no-topic edit bug

master^2
Dylan Göpel 2019-07-12 19:27:14 +02:00
parent 6b8139927e
commit df43e926ab
1 changed files with 6 additions and 0 deletions

6
memo
View File

@ -106,6 +106,12 @@ function remove_topic (){
function edit_topic () {
topic_name=$1
if [[ -z $topic_name ]]
then
echo "you have to specify a topic"
exit 1
fi
precondition:provide_topic ${topic_name}
topic_path=${MEMO_FOLDER}/${topic_name}