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:
parent
88ea239f58
commit
dfe69c29a9
3 changed files with 15 additions and 1 deletions
5
mod.bash
5
mod.bash
|
@ -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/
|
||||||
|
}
|
||||||
|
|
|
@ -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
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