summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-07-21 07:21:11 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-07-21 07:21:11 -0500
commit1659bbe4298652972f3b8e517f60e7d4e698bbf0 (patch)
treecfd9f6547a4689c3638a0cd679362d9ddd7fb843 /g
parentcb4c69121a7ca4db4748a78a16d87aaadb3aa9fa (diff)
suppress distracting message in ./g on some platform
we use perl to determine the absolute path of argument thought to be fiels. but sometime they are not file at all and that call 'fail'. The code is meant to deal with such case, but on some platform that produce a scary message on stderr in the middle of the build log. This hide these messages. Change-Id: I52d43e0b26847ab091d76fd446a05c4d84836a77
Diffstat (limited to 'g')
-rwxr-xr-xg2
1 files changed, 1 insertions, 1 deletions
diff --git a/g b/g
index 7ec3bdae745b..902f3ac18d05 100755
--- a/g
+++ b/g
@@ -233,7 +233,7 @@ while shift ; do
FILESNUM=$(($FILESNUM+1))
else
# make the paths absolute
- FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM")
+ FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM" 2>/dev/null)
if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
# it is probably not a file, but a tag name, or something
FILES[$FILESNUM]="$PARAM"