aboutsummaryrefslogtreecommitdiffstats
path: root/SOURCE/main.sh
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2023-04-13 15:27:16 +0200
committerdanix <danix@danix.xyz>2023-04-13 15:27:16 +0200
commit4cbcb39e2007338c1c6ec17376c14b841ce6f733 (patch)
tree18593d0254d253bcdd711581465db828f30fadb7 /SOURCE/main.sh
parent6a1930959e1cb0ec8739254bedc6b8de2bcc20fd (diff)
downloadbash-notes-4cbcb39e2007338c1c6ec17376c14b841ce6f733.tar.gz
bash-notes-4cbcb39e2007338c1c6ec17376c14b841ce6f733.zip
initial setup of git functionality. The program can now initalize a local repo and add a remote.
Diffstat (limited to 'SOURCE/main.sh')
-rw-r--r--SOURCE/main.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/SOURCE/main.sh b/SOURCE/main.sh
index be70a06..07f96e8 100644
--- a/SOURCE/main.sh
+++ b/SOURCE/main.sh
@@ -1,5 +1,5 @@
# shellcheck disable=SC2006
-GOPT=$(getopt -o hvplr::a::e::d::s:: --long help,version,list,plain,userconf,restore::,backup::,add::,edit::,delete::,show:: -n 'bash-notes' -- "$@")
+GOPT=$(getopt -o hvplr::a::e::d::s:: --long help,version,list,plain,userconf,sync,restore::,backup::,add::,edit::,delete::,show:: -n 'bash-notes' -- "$@")
# shellcheck disable=SC2181
if [ $? != 0 ] ; then helptext >&2 ; exit 1 ; fi
@@ -91,6 +91,10 @@ while true; do
backup_restore $RDIR
exit
;;
+ --sync )
+ gitsync
+ exit
+ ;;
--userconf )
export_config
# shellcheck disable=SC2317