mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-18 16:07:59 +00:00
add logseq-sync task
This commit is contained in:
parent
2fae9e358a
commit
d5bb526d84
2 changed files with 15 additions and 0 deletions
|
@ -9,4 +9,11 @@ function install_pkg_packages() {
|
||||||
pkg install -y "${packages[@]}"
|
pkg install -y "${packages[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_termux_task() {
|
||||||
|
mkdir -p ~/.shortcuts/tasks
|
||||||
|
install -v "$1" ~/.shortcuts/tasks/
|
||||||
|
}
|
||||||
|
|
||||||
install_pkg_packages
|
install_pkg_packages
|
||||||
|
install_termux_task tasks/logseq-sync
|
||||||
|
termux-setup-storage
|
||||||
|
|
8
termux/tasks/logseq-sync
Executable file
8
termux/tasks/logseq-sync
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
cd ~/storage/shared/logseq
|
||||||
|
git pull
|
||||||
|
git add --all
|
||||||
|
if git commit -m update; then
|
||||||
|
git push
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue