112 |
curl -L -C - "$sysIso" -o systemrescuecd-x86-"$sysVersion".iso |
curl -L -C - "$sysIso" -o systemrescuecd-x86-"$sysVersion".iso |
113 |
fi |
fi |
114 |
# Check integrity |
# Check integrity |
115 |
echo "$sysmd5 systemrescuecd-x86-"$sysVersion".iso" > test.md5sum |
if [ -n "$md5sumFound" ];then |
116 |
echo -n "Checking integrity of " |
echo "$sysmd5 systemrescuecd-x86-"$sysVersion".iso" > test.md5sum |
117 |
md5sum -c test.md5sum 2>/dev/null |
echo -n "Checking integrity of " |
118 |
if [ "$?" -eq 1 ];then |
md5sum -c test.md5sum 2>/dev/null |
119 |
echo "Integrity check on systemrescuecd-x86-"$sysVersion".iso failed!!!" |
if [ "$?" -eq 1 ];then |
120 |
echo -n "Do you want to delete this file? ([y]/n): " |
echo "Integrity check on systemrescuecd-x86-"$sysVersion".iso failed!!!" |
121 |
read ans |
echo -n "Do you want to delete this file? ([y]/n): " |
122 |
if [ "$ans" != "y" ];then |
read ans |
123 |
rm -f systemrescuecd-x86-"$sysVersion".iso 2>/dev/null && echo "File deleted..." || echo "****** Error deleting file!!! ****** |
if [ "$ans" != "n" ];then |
124 |
Please delete systemrescuecd-x86-"$sysVersion".iso manually" |
rm -f systemrescuecd-x86-"$sysVersion".iso 2>/dev/null && echo "File deleted..." || echo "****** Error deleting file!!! ****** |
125 |
|
Please delete systemrescuecd-x86-"$sysVersion".iso manually" |
126 |
|
fi |
127 |
fi |
fi |
128 |
rm -f test.md5sum 2>/dev/null |
rm -f test.md5sum 2>/dev/null |
129 |
fi |
fi |
212 |
echo "Integrity check on clonezilla-live-"$clonVersion"-"$clonType".iso failed!!!" |
echo "Integrity check on clonezilla-live-"$clonVersion"-"$clonType".iso failed!!!" |
213 |
echo -n "Do you want to delete this file? ([y]/n): " |
echo -n "Do you want to delete this file? ([y]/n): " |
214 |
read ans |
read ans |
215 |
if [ "$ans" != "y" ];then |
if [ "$ans" != "n" ];then |
216 |
rm -f clonezilla-live-"$clonVersion"-"$clonType".iso 2>/dev/null && echo "File deleted..." || echo "****** Error deleting file!!! ****** |
rm -f clonezilla-live-"$clonVersion"-"$clonType".iso 2>/dev/null && echo "File deleted..." || echo "****** Error deleting file!!! ****** |
217 |
Please delete clonezilla-live-"$clonVersion"-"$clonType".iso manually" |
Please delete clonezilla-live-"$clonVersion"-"$clonType".iso manually" |
218 |
fi |
fi |