1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 08:05:01 +00:00

add logseq-sync task

This commit is contained in:
Nebel 2022-10-27 01:00:00 +09:00
parent 88ea239f58
commit dfe69c29a9
3 changed files with 15 additions and 1 deletions

View file

@ -64,3 +64,8 @@ function install_pkg_packages() {
pkg upgrade -y pkg upgrade -y
pkg install -y "${packages[@]}" pkg install -y "${packages[@]}"
} }
function install_termux_task() {
mkdir -p ~/.shortcuts/tasks
install -v "$1" ~/.shortcuts/tasks/
}

View file

@ -3,4 +3,5 @@ set -euo pipefail
cd -- "$(dirname -- "$0")" cd -- "$(dirname -- "$0")"
. ../mod.bash . ../mod.bash
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