From 0dc5931321d6f0f93192df0e0c42de5a315943a1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 Feb 2019 22:21:50 +0100 Subject: [PATCH] remove useless git method in manual installation --- tests/pure_tools_installer.test.fish | 2 -- tools/installer.fish | 9 --------- 2 files changed, 11 deletions(-) diff --git a/tests/pure_tools_installer.test.fish b/tests/pure_tools_installer.test.fish index dd2689a7..77d61a3c 100644 --- a/tests/pure_tools_installer.test.fish +++ b/tests/pure_tools_installer.test.fish @@ -28,8 +28,6 @@ end echo $PURE_INSTALL_DIR ) = "$FISH_CONFIG_DIR/functions/theme-pure" -@test "installer: check git is present" ( pure::check_git_is_available >/dev/null) $status -eq 0 - @test "installer: backup existing theme prompt" ( touch $FISH_CONFIG_DIR/functions/fish_prompt.fish rm -f $FISH_CONFIG_DIR/functions/fish_prompt.fish.ignore diff --git a/tools/installer.fish b/tools/installer.fish index 1db71d10..75bdd7b7 100644 --- a/tools/installer.fish +++ b/tools/installer.fish @@ -21,13 +21,6 @@ function pure::set_pure_install_path end end -function pure::check_git_is_available - printf "\tChecking for git availability" - command --search git >/dev/null 2>&1; or begin; - printf "%sError: git is not installed%s" "$color_error" "$color_normal" - return 1 - end -end function pure::fetch_source printf "\tFetching theme's source" @@ -72,7 +65,6 @@ function pure::clean_after_install printf "\tCleaning after install" functions --erase pure::set_fish_config_dir functions --erase pure::set_pure_install_dir - functions --erase pure::check_git_is_available functions --erase pure::fetch_source functions --erase pure::backup_existing_theme functions --erase pure::enable_autoloading @@ -98,7 +90,6 @@ function install_pure printf "Installing Pure theme\n" pure::set_fish_config_path $argv pure::set_pure_install_path $argv - pure::check_git_is_available; pure::exit_symbol $status pure::fetch_source; pure::exit_symbol $status pure::backup_existing_theme; pure::exit_symbol $status pure::enable_autoloading; pure::exit_symbol $status