CharlesChiuGit / Logseq-Git-Sync-101

This repo aims to help Logseq users to sync their data with Git and GitHub.
MIT License
1.06k stars 88 forks source link

Wrong path of source file on Android 11, and extra line needed for not asking for pass phrase. #30

Closed SkyLull closed 1 year ago

SkyLull commented 1 year ago

Android version: 11 Phone brand: Sharp

My Termux install things under ~/../usr/bin instead of ~/bin/ So instead of source ~/bin/source-ssh-agent, I'll need to use source ~/../usr/bin/source-ssh-agent/ for the ssh-agent to work. But I'm not a professional android dev, not sure if this is a general case for android 11, or it only happens on my brand.

Also, I'll need to add eval $(ssh-agent) before source command so that the script won't ask me to enter pass phrase.

In sum, my pull-graph file now looks like this:

#!/usr/bin/bash
eval $(ssh-agent)  # extra line
source ~/../usr/bin/source-ssh-agent/ # path modified
cd {your repo location} 
git pull
CharlesChiuGit commented 1 year ago

https://github.com/CharlesChiuGit/Logseq-Git-Sync-101/wiki/For-Android-users Updated. Many tks!