Updated: + 4

main
shwetha729 2023-08-15 13:10:36 -04:00
parent 603564a647
commit fa1d2e9f0a
1 changed files with 24 additions and 0 deletions

View File

@ -248,6 +248,30 @@ fi
git push -q 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: Run the script in the `/.local/bin` directory:
``` ```
bash zk_sync bash zk_sync