@@ -62,7 +62,7 @@ static bool has_deps(const std::vector<std::string>& dependencies)
6262
6363static bool find_plugin_prefix (const plugin_t & plugin, const plugin_t & pending_plugin)
6464{
65- for (const auto & prefix : pending_plugin.prefixes )
65+ for (const std::string & prefix : pending_plugin.prefixes )
6666 if (std::find (plugin.prefixes .begin (), plugin.prefixes .end (), prefix) != plugin.prefixes .end ())
6767 return true ;
6868 return false ;
@@ -178,7 +178,7 @@ void PluginManager::build_plugins(const fs::path& working_dir)
178178 }
179179 }
180180
181- if (!options.install_no_warn )
181+ if (!options.install_shut_up )
182182 {
183183 warn (" {}" ,
184184 " You should never blindly trust anything in life that you never saw/know about.\n "
@@ -199,9 +199,9 @@ void PluginManager::build_plugins(const fs::path& working_dir)
199199
200200 if (!manifest.get_dependencies ().empty ())
201201 {
202- info (" The repository {} requires the following dependencies, check if you have them installed:\n {}" ,
202+ info (" The plugin repository {} requires the following dependencies, check if you have them installed:\n {}" ,
203203 manifest.get_repo_name (), fmt::join (manifest.get_dependencies (), " , " ));
204- if (!askUserYorN (true , " Are these dependencies installed?" ))
204+ if (!options. install_shut_up && ! askUserYorN (true , " Are these dependencies installed?" ))
205205 die (" Balling out, re-install the repository again after installing all dependencies." );
206206 }
207207
@@ -230,7 +230,7 @@ void PluginManager::build_plugins(const fs::path& working_dir)
230230 warn (" Plugin '{}' has conflicting prefixes with other plugins." , plugin.name );
231231 warn (" Check with 'cufetchpm list' the plugins that have one of the following prefixes: {}" ,
232232 fmt::join (plugin.prefixes , " , " ));
233- if (!askUserYorN (false , " Wanna continue?" ))
233+ if (!options. install_shut_up && ! askUserYorN (false , " Wanna continue?" ))
234234 {
235235 fs::remove_all (working_dir);
236236 die (" Balling out" );
@@ -283,7 +283,7 @@ void PluginManager::build_plugins(const fs::path& working_dir)
283283 const fs::path& library_config_path = manifest_config_path / library.path ().filename ();
284284 if (fs::exists (library_config_path) && (!options.install_force || !is_update))
285285 {
286- if (askUserYorN (false , " Plugin '{}' already exists. Replace it?" , library_config_path.string ()))
286+ if (options. install_shut_up || askUserYorN (false , " Plugin '{}' already exists. Replace it?" , library_config_path.string ()))
287287 fs::remove_all (library_config_path);
288288 else
289289 continue ;
0 commit comments