chore(bootstrap): add filter-repo installation stuff

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-06-19 15:21:31 +08:00
parent f66dd39b22
commit b91909dbcd
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 15 additions and 2 deletions

View File

@ -215,6 +215,18 @@ installTF() {
fi
}
installFilterRepo() {
if [[ $DOTFILES_OS_NAME == "android-termux" ]]; then
pip install git-filter-repo
else
if command -v python3>>/dev/null && [ -f "$HOME/.pyenv/shims/python3" ]; then
pip3 install git-filter-repo
else
pip3 install git-filter-repo -U
fi
fi
}
main() {
useColor
@ -230,6 +242,7 @@ main() {
# step 4: install additional needed tools
installAscinema
installTF
installFilterRepo
# step 5: copy and symlink files
copyGitConfig
@ -237,8 +250,8 @@ main() {
copyBashrc
copyKeysSSH
# step : finally clean up bullshit
# step 6: finally clean up bullshit
cleanup
}
main "$@"
main "$@"