summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2022-12-12 11:55:51 +0800
committergarhve <git@garhve.com>2022-12-12 11:55:51 +0800
commit0b5980015f5b3d0eedf4fb8941b0975333c96e70 (patch)
treecc92761c4ebdb38b1c71032ac88d4c68eb272c2a
parentd7c8cb203eeabdc47ee42949f5acfaa64baef18e (diff)
remove unused comments
-rwxr-xr-xbash/blog.sh36
1 files changed, 2 insertions, 34 deletions
diff --git a/bash/blog.sh b/bash/blog.sh
index f6405ff..73c9ad6 100755
--- a/bash/blog.sh
+++ b/bash/blog.sh
@@ -5,42 +5,10 @@
# @file : blog
# @created : Friday Dec 09, 2022 16:09:42 CST
#
-# @description : simplify blog publishing.
+# @description : simplify blog publishing, it only can use in blog dir
######################################################################
-# usage: prog [action] [option]
-
-#p="$(pwd)"
-#
-#cd "$HOME/Storage/data/blog"
-#
-#echo "Enter the blog name"
-#read -r name
-#
-#hugo new posts/"$name"
-#
-#echo "1. en"
-#echo "2. cn"
-#echo "all option would be default to 1 except 2[1 or 2]: "
-#read l
-#
-#if [ $l -eq 1 ]; then
-# lang="en"
-#elif [ $l -eq 2 ]; then
-# lang="cn"
-#else
-# lang="en"
-#fi
-#[ $lang == "cn" ] && mv "content/en/posts/$name" "content/cn/posts/$name"
-#vim "content/$lang/posts/$name"
-#
-#hugo
-#cd "public"
-#git add .
-#read -r -p "commit message: " com
-#git commit -m "$com"
-#
-#cd "$p"
+# usage: prog [action] [language]
push() {
read -r -p "Do you want to push?[y/n] " ans