Permalink
Browse files

Fix some possible warning messages during download parsing

  • Loading branch information...
1 parent 1793fe1 commit 3b0aba72aa1f38c9b489431c78321671d976be22 @kmoore134 kmoore134 committed Sep 29, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src-sh/libsh/functions.sh
@@ -242,7 +242,8 @@ get_file_from_mirrors()
_time=`expr $_time + 1`
done
- _err="`cat ${_eFile}`"
+ _err="`cat ${_eFile} 2>/dev/null`"
+ if [ -z "$_err" ] ; then _err="0"; fi
rm ${_eFile} 2>/dev/null
if [ "$_err" = "0" ]; then echo "FETCHDONE" ; fi
unset FETCH_PID
@@ -303,7 +304,8 @@ get_file() {
_time=`expr $_time + 2`
done
- _err="`cat ${_eFile}`"
+ _err="`cat ${_eFile} 2>/dev/null`"
+ if [ -z "$_err" ] ; then _err="0"; fi
rm ${_eFile} 2>/dev/null
if [ "$_err" = "0" ]; then echo "FETCHDONE" ; fi
unset FETCH_PID

0 comments on commit 3b0aba7

Please sign in to comment.