summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2022-12-12 12:03:20 +0800
committergarhve <git@garhve.com>2022-12-12 12:03:20 +0800
commit46e07255bbe67b1dbf93dcd7f33e25f10eb8f8de (patch)
tree6460adb830a9ea99b0de210ad4b514e96b471d41 /bash
parent7211d120f1b3599256257bf24852ba1c334db96f (diff)
change description for comment and helper
Diffstat (limited to 'bash')
-rwxr-xr-xbash/blog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/blog.sh b/bash/blog.sh
index 0550eeb..f627aea 100755
--- a/bash/blog.sh
+++ b/bash/blog.sh
@@ -8,7 +8,7 @@
# @description : simplify blog publishing, it only can use in blog dir
######################################################################
-# usage: prog [action] [language]
+# usage: prog new/edit/push [en/cn]
push() {
read -r -p "Do you want to push?[y/n] " ans
@@ -71,7 +71,7 @@ new() {
}
-[ $# -lt 1 ] && echo "usage: $(basename $0) action [en/cn]"
+[ $# -lt 1 ] && echo "usage: $(basename $0) new/edit/push [en/cn]"
[ $1 == "new" ] && new "$2"
[ $1 == "edit" ] && edit "$2"