Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'
This commit is contained in:
@@ -42,7 +42,7 @@ showprivate () {
|
||||
checkprivate () {
|
||||
ret=0
|
||||
x=`showprivate "$@"`
|
||||
echo $x | grep incomplete >&- 2>&- && ret=1
|
||||
echo $x | grep incomplete >/dev/null 2>&1 && ret=1
|
||||
[ $ret = 1 ] && {
|
||||
echo "$x"
|
||||
echo_i "failed"
|
||||
|
||||
Reference in New Issue
Block a user