From b91909dbcdc31ede9e03c3a48777c615992cc298 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Eugenio Halili Date: Sat, 19 Jun 2021 15:21:31 +0800 Subject: [PATCH] chore(bootstrap): add filter-repo installation stuff Signed-off-by: Andrei Jiroh Eugenio Halili --- bootstrap | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index 2248548..ca73b02 100644 --- a/bootstrap +++ b/bootstrap @@ -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 "$@" \ No newline at end of file +main "$@"