Skip to content

Commit

Permalink
remove useless git method in manual installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and edouard-lopez committed Feb 18, 2019
1 parent e54d93e commit 0dc5931
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions tests/pure_tools_installer.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions tools/installer.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0dc5931

Please sign in to comment.