Skip to content

Commit

Permalink
Fix spacing between tool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Feb 8, 2024
1 parent 8365e7b commit 12620af
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/ci_steps/log_tool_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,52 @@

set -e

echo

# Log CPU for hardware in use, if running on Mac

if [[ "$OSTYPE" == "darwin"* ]];
then
which sysctl
sysctl -a | grep machdep.cpu || true
echo
else
echo "sysctl not run (not a Mac)"
fi
echo

# Log location & version for swiftc, xcodebuild, java, xcbeautify

if command -v swiftc &> /dev/null
then
which swiftc
swiftc --version
echo
else
echo "swiftc not installed"
fi
echo

if command -v xcodebuild &> /dev/null
then
which xcodebuild
xcodebuild -version
echo
else
echo "xcodebuild not installed"
fi
echo

if command -v java &> /dev/null
then
which java
java --version
echo
else
echo "java not installed"
fi
echo

if command -v xcbeautify &> /dev/null
then
which xcbeautify
xcbeautify --version
echo
else
echo "xcbeautify not installed"
fi

0 comments on commit 12620af

Please sign in to comment.