mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Fix for issue #8 in the issue tracker.
The script ignore if the first md5sum failed, both are now checked and the script will exit properly if one of the check does not succeed.
This commit is contained in:
parent
5f73eab95e
commit
7d2b3bdbbf
25
config/release/create_installstick
Executable file → Normal file
25
config/release/create_installstick
Executable file → Normal file
@ -56,14 +56,9 @@ echo "# Please read the instructions and use very carefully.. #"
|
||||
echo "# #"
|
||||
echo "#########################################################"
|
||||
|
||||
# check MD5 sums
|
||||
echo "checking MD5 sum..."
|
||||
md5sum -c target/KERNEL.md5
|
||||
MD5_ERROR="$?"
|
||||
md5sum -c target/SYSTEM.md5
|
||||
MD5_ERROR="$?"
|
||||
|
||||
if [ "$MD5_ERROR" = "1" ]; then
|
||||
md5sumFailed()
|
||||
{
|
||||
clear
|
||||
echo "#########################################################"
|
||||
echo "# #"
|
||||
echo "# OpenELEC.tv failed md5 check - Installation will quit #"
|
||||
@ -73,7 +68,19 @@ if [ "$MD5_ERROR" = "1" ]; then
|
||||
echo "# #"
|
||||
echo "#########################################################"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# check MD5 sums
|
||||
echo "checking MD5 sum..."
|
||||
md5sum -c target/KERNEL.md5
|
||||
if [ "$?" = "1" ]; then
|
||||
md5sumFailed
|
||||
fi
|
||||
md5sum -c target/SYSTEM.md5
|
||||
if [ "$?" = "1" ]; then
|
||||
md5sumFailed
|
||||
fi
|
||||
|
||||
# (TODO) umount anything
|
||||
umount "$PART"
|
||||
|
Loading…
x
Reference in New Issue
Block a user