diff options
author | Irina Gómez <irinagomez@us.es> | 2020-12-16 08:52:23 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2020-12-16 08:52:23 +0100 |
commit | 5a960d8c8b9c8fb6240b76550252de9775ae6025 (patch) | |
tree | 374f83b8843431b192be73cb2deeae468584ae84 | |
parent | cd5181aa1b1899d053f9d4f782c53ef6eebe0d3f (diff) |
#1014 ogGetImageInfo: Support Windows update october 2020.
-rwxr-xr-x | client/engine/Image.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 3b5fdbc8..a2465a12 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -941,7 +941,7 @@ IMGFILE=$1 FILEHEAD=/tmp/`basename $IMGFILE`.infohead COMPRESSOR=`file $IMGFILE | awk '{print $2}'` ogCheckStringInGroup "$COMPRESSOR" "gzip lzop" || ogRaiseError $OG_ERR_IMAGE "Image format is not valid $IMGFILE" || return $? -$($COMPRESSOR -dc $IMGFILE 2>/dev/null | head > $FILEHEAD) || ogRaiseError $OG_ERR_IMAGE "Image format is not valid $IMGFILE" || return $? +$($COMPRESSOR -dc $IMGFILE 2>/dev/null | head -n 40 > $FILEHEAD) || ogRaiseError $OG_ERR_IMAGE "Image format is not valid $IMGFILE" || return $? ## buscando Primera opción. if [ "$IMGDETECT" == "FALSE" ] |