Improved the tool scripts.

- Avoid the empty lastmod file.
- Check if there is no post.
- Fixed the prompt message.
This commit is contained in:
Cotes Chung
2020-07-13 11:20:07 +08:00
parent c0ba181246
commit 0d47beba97
3 changed files with 15 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ check_status() {
local _change=$(git status . -s)
if [[ ! -z ${_change} ]]; then
echo "Warning: Commit the changes of the changes first:"
echo "Warning: Commit the following changes first:"
echo "$_change"
exit 1
fi