Skip to content

Commit

Permalink
feat: create empty config file if one does not exist
Browse files Browse the repository at this point in the history
This explicitly informs users that the file needs to be updated.
Otherwise, users end up with empty variables for project name, author
and so on.
  • Loading branch information
sanjayankur31 committed Jul 21, 2022
1 parent 9ee0dca commit 49b64ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions calliope.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ default_commit_message="Add new entry"
if [ -f .callioperc ]
then
source .callioperc
else
echo "No .callioperc file found. Creating file with empty fields."
echo "Please fill in the necessary information."
echo "It will be used in subsequent runs."
echo "ProjectName=\"\"" > .callioperc
echo "author=\"\"" >> .callioperc
echo "bibsrc=\"\"" >> .callioperc
echo "encryptionId=\"\"" >> .callioperc
exit 0
fi


Expand Down

0 comments on commit 49b64ae

Please sign in to comment.