fastlane/lib/fastlane/actions/git_add.rb in fastlane-2.101.1 vs fastlane/lib/fastlane/actions/git_add.rb in fastlane-2.102.0
- old
+ new
@@ -4,25 +4,26 @@
def self.run(params)
should_escape = params[:shell_escape]
if params[:pathspec]
paths = params[:pathspec]
- UI.success("Successfully added from \"#{paths}\" 💾.")
+ success_message = "Successfully added from \"#{paths}\" 💾."
elsif params[:path]
if params[:path].kind_of?(String)
paths = shell_escape(params[:path], should_escape)
elsif params[:path].kind_of?(Array)
paths = params[:path].map do |p|
shell_escape(p, should_escape)
end.join(' ')
end
- UI.success("Successfully added \"#{paths}\" 💾.")
+ success_message = "Successfully added \"#{paths}\" 💾."
else
paths = "."
- UI.success("Successfully added all files 💾.")
+ success_message = "Successfully added all files 💾."
end
result = Actions.sh("git add #{paths}", log: FastlaneCore::Globals.verbose?).chomp
+ UI.success(success_message)
return result
end
def self.shell_escape(path, should_escape)
path = path.shellescape if should_escape