Changeset 41135


Ignore:
Timestamp:
2014-06-11T15:00:25+02:00 (4 years ago)
Author:
blogic
Message:

base-files: properly remove stderr from zcat/bzcat

Signed-off-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/upgrade/common.sh

    r41125 r41135  
    183183 
    184184get_magic_word() { 
    185         get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"' 
     185        (get_image "$@" | dd bs=2 count=1 | hexdump -v -n 2 -e '1/1 "%02x"') 2>/dev/null 
    186186} 
    187187 
    188188get_magic_long() { 
    189         get_image "$@" | dd bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"' 
     189        (get_image "$@" | dd bs=4 count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2>/dev/null 
    190190} 
    191191 
Note: See TracChangeset for help on using the changeset viewer.