mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
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:
parent
181462d1ee
commit
30f69b669c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue