From 985db79c4de1de56933a9efe35f54fa62b83f65f Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Wed, 19 Jun 2024 15:35:30 +0800 Subject: [PATCH] Update content --- bin/commit.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bin/commit.sh diff --git a/bin/commit.sh b/bin/commit.sh new file mode 100644 index 0000000..6527b37 --- /dev/null +++ b/bin/commit.sh @@ -0,0 +1,27 @@ +#! /bin/bash +########################################### +# +########################################### + +# constants +baseDir=$(cd -P `dirname "$0"`;pwd) +export PYTHONUNBUFFERED=1 +export PATH=/opt/miniconda3/envs/venv-py3/bin:$PATH + +# functions + +# main +[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return + +set -x +cd $baseDir/.. +git add --all +msg="Update content" + +if [ ! "$1" == '' ]; then + msg="$*" +fi + +git commit -m "$msg" +git push origin master +git push github master \ No newline at end of file