Skip to content

Commit 1ea7c57

Browse files
Fix Xcode CLT printing to consone
1 parent 4821e01 commit 1ea7c57

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Variscite.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ nonInteractiveAzuleCheck () {
4949
## Checks for the Xcode command line tools and doesn't prompt for installation. Returns 1 if Xcode not found, else returns 0.
5050
# Call with true to make it print an error.
5151
nonInteractiveXcodeCltCheck () {
52-
if ! xcode-select -p 1>/dev/null; then
52+
if ! xcode-select -p &>/dev/null; then
5353
if [[ $1 == "true" ]]; then
5454
echo -e "$error Variscite couldn't locate the Xcode Command Line Tools."
5555
echo -e "$info You can install them manually by running xcode-select --install"
@@ -447,7 +447,8 @@ if [ checkAreWeOnMac ]; then
447447
echo -e "$question Variscite can request the installation of them for you."
448448
read -p "$(echo -e "$question Continue? y/n: ")" -n 1 -r
449449
if [[ $REPLY =~ ^[Yy]$ ]];then
450-
xcode-select --install
450+
xcode-select --install &>/dev/null
451+
echo
451452
echo -e "$info Variscite has requested the installation of Xcode Command Line Tools for you."
452453
echo -e "$info Once they are installed, just re-run Variscite!"
453454
exit 0

0 commit comments

Comments
 (0)