bootdisk: ui-bugreport (HEAD) [malekith]
PLD CVS
pld-cvs-commit w pld.org.pl
Pon, 29 Lip 2002, 13:16:01 CEST
Module name: bootdisk
Changes by: malekith 02/07/29 13:15:59
Modified files:
ui-bugreport
Log message:
- bootdisk doesn't have cmp, use md5sum
Index: ui-bugreport
===================================================================
RCS file: /cvsroot/bootdisk/batch-installer/ui/ui-bugreport,v
diff -d -u -r1.2 -r1.3
--- ui-bugreport 2002/07/26 10:12:38 1.2
+++ ui-bugreport 2002/07/29 11:15:59 1.3
@@ -148,10 +148,10 @@
done
) > /tmp/bug.txt
-cp /tmp/bug.txt /tmp/bug.txt.orig
+old_md5=$(md5sum /tmp/bug.txt | (read sum file; echo $sum) )
$editor /tmp/bug.txt
-if cmp -s /tmp/bug.txt /tmp/bug.txt.orig ; then
+if [ $(md5sum /tmp/bug.txt | (read sum file; echo $sum) ) = $old_md5 ] ; then
dial <<EOF
$(nls "You havn't changed the bug report (or didn't save it). Aborting.")
<br><br>
Więcej informacji o liście dyskusyjnej pld-installer