소스 검색

added 2nd mime for gzip

Daniel Gibbs 10 년 전
부모
커밋
341db2e034
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lgsm/functions/core_dl.sh

+ 1 - 1
lgsm/functions/core_dl.sh

@@ -54,7 +54,7 @@ echo -ne "extracting ${filename}..."
 fn_scriptlog "extracting download"
 mime=$(file -b --mime-type "${filedir}/${filename}")
 
-if [ "${mime}" == "application/gzip" ]; then
+if [ "${mime}" == "application/gzip" ]||[ "${mime}" == "application/x-gzip" ]; then
 	tarcmd=$(tar -zxf "${filedir}/${filename}" -C "${extractdir}")
 elif [ "${mime}" == "application/x-bzip2" ]; then
 	tarcmd=$(tar -jxf "${filedir}/${filename}" -C "${extractdir}")