Updated: + 4
parent
603564a647
commit
fa1d2e9f0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue