mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-06 14:16:33 +02:00
[FEAT] Remote Git Sync
This commit is contained in:
@@ -419,6 +419,8 @@ CadmusMisc() {
|
|||||||
;;
|
;;
|
||||||
print) shift; "${script_dir}/NoteFind.sh" "${NOTES_DIR}" | xargs mdcat
|
print) shift; "${script_dir}/NoteFind.sh" "${NOTES_DIR}" | xargs mdcat
|
||||||
;;
|
;;
|
||||||
|
sync) shift; cd "${NOTES_DIR}"; git pull && git add -A && git commit && git push
|
||||||
|
;;
|
||||||
--*) >&2 echo "bad option $1"
|
--*) >&2 echo "bad option $1"
|
||||||
;;
|
;;
|
||||||
*) >&2 echo -e "argument \e[1;35m${1}\e[0m has no definition."
|
*) >&2 echo -e "argument \e[1;35m${1}\e[0m has no definition."
|
||||||
|
Reference in New Issue
Block a user