diff --git a/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md b/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md index 357218b..03b051a 100644 --- a/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md +++ b/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md @@ -248,6 +248,30 @@ fi git push -q ``` +Updated `zk_sync` file" +```bash + +#!/usr/bin/env sh + +export ZK_PATH=/Volumes/GoogleDrive-117209510583853875316/My\ Drive/Resources/collabtestdir/Notepad +cd "$ZK_PATH" + +git fetch + +CHANGES_EXIST=$(git status — porcelain | wc -l) +formatted_date="`date + '%A, %B %d, %Y'`" +# current="`date +'%Y-%m-%d %H:%M:%S'`" + +msg="Updated: $formatted_date" + +if [ “$CHANGES_EXIST” -eq 0 ]; +then + exit 0 + +fi + +``` + Run the script in the `/.local/bin` directory: ``` bash zk_sync