Commit 54d30b69 authored by Simon Warta's avatar Simon Warta

Print error to STDERR in script '📦 Check Pods Manifest.lock'

This ensures that scripts like xcpretty can differentiate default output
and error output.
parent 88f4496a
...@@ -176,9 +176,8 @@ module Pod ...@@ -176,9 +176,8 @@ module Pod
phase.shell_script = <<-SH.strip_heredoc phase.shell_script = <<-SH.strip_heredoc
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
cat << EOM # print error to STDERR
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
EOM
exit 1 exit 1
fi fi
SH SH
......
...@@ -97,9 +97,8 @@ module Pod ...@@ -97,9 +97,8 @@ module Pod
phase.shell_script.should == <<-EOS.strip_heredoc phase.shell_script.should == <<-EOS.strip_heredoc
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
cat << EOM # print error to STDERR
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
EOM
exit 1 exit 1
fi fi
EOS EOS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment