change file type check on xubuntu 16.04 for .img

file _build_arm_steps/2016-05-06_yunohost_rasbian-jessie.img
_build_arm_steps/2016-05-06_yunohost_rasbian-jessie.img: DOS/MBR boot sector; partition 1 : ID=0xc, start-CHS
(0x0,130,3), end-CHS (0x8,40,32), startsector 8192, 122880 sectors; partition 2 : ID=0x83, start-CHS (0x8,40,33),
end-CHS (0x15,194,6), startsector 131072, 4074121 sectors

may be file command changed output for img file.
This commit is contained in:
Sylvain 2016-05-06 14:34:11 +02:00
parent 181462d1ee
commit 30f69b669c

View file

@ -22,7 +22,7 @@ if [[ -z $strImgFile ]]; then
exit exit
fi fi
if [[ ! -e $strImgFile || ! $(file $strImgFile) =~ "x86" ]]; then if [[ ! -e $strImgFile || ! $(file $strImgFile) =~ "DOS/MBR boot sector" ]]; then
echo "Error : Not an image file, or file doesn't exist" echo "Error : Not an image file, or file doesn't exist"
exit exit
fi fi