Skip to content

Commit d1e3bb5

Browse files
Damian Rousonzbeekman
authored andcommitted
Eliminate inconsequation install error messages
The stack_new function invoked by install.sh outputs inconsequential errors on OS X because of the lack of support for the -g flag in bash "eval". This commit pipes that output to /dev/null.
1 parent c5dcbb0 commit d1e3bb5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,6 @@ print_header()
691691
fi
692692
}
693693

694-
. install_prerequisites/set_SUDO.sh
695-
set_SUDO_if_necessary
696-
697694
build_opencoarrays()
698695
{
699696
print_header
@@ -843,6 +840,8 @@ else # Find or install prerequisites and install OpenCoarrays
843840

844841
cd install_prerequisites &&
845842
installation_record=install-opencoarrays.log &&
843+
. set_SUDO.sh &&
844+
set_SUDO_if_necessary &&
846845
CMAKE=$CMAKE build_opencoarrays 2>&1 | tee ../$installation_record
847846
report_results 2>&1 | tee -a ../$installation_record
848847

install_prerequisites/stack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ function stack_new
4747
return 1
4848
fi
4949

50-
eval "declare -ag _stack_$1"
51-
eval "declare -ig _stack_$1_i"
50+
eval "declare -ag _stack_$1" >& /dev/null
51+
eval "declare -ig _stack_$1_i" >& /dev/null
5252
eval "let _stack_$1_i=0"
5353
return 0
5454
}

0 commit comments

Comments
 (0)