1
0
Fork 0
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:
Nebel 2022-10-27 01:00:00 +09:00
parent 2fae9e358a
commit d5bb526d84
2 changed files with 15 additions and 0 deletions

View file

@ -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
View 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