Browse Source

sde-download: fixed to match the file type case-insensitive

Note:

New versions of `file` return "XZ compressed data" instead of
"xz compressed data" like former versions did, which breaks xz
file type detection in 'sde-download'.
stable/0.5
Christian Wiese 12 years ago
parent
commit
61520042d5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/sde-download

+ 2
- 2
bin/sde-download

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: bin/sde-download
# Copyright (C) 2006 - 2011 The OpenSDE Project
# Copyright (C) 2006 - 2013 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -538,7 +538,7 @@ download_file_now() {
echo "WARNING: Unknown file extension: $gzfile"
typeexpr="." ;;
esac
if file "$gzfile.incomplete" | grep -v "$typeexpr"
if file "$gzfile.incomplete" | grep -vi "$typeexpr"
then
echo "ERROR: File type does not match" \
"filename ($typeexpr)!"

Loading…
Cancel
Save