interactive test fix #2 :-)

pull/1/head
tastytea 2015-10-04 20:51:14 +02:00
parent 709d478fe0
commit 02282dd3dc
1 changed files with 3 additions and 3 deletions

View File

@ -136,14 +136,14 @@ then
#Compare actual hashes of MBR against saved hashes. #Compare actual hashes of MBR against saved hashes.
if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
then then
[ -z "$PS1" ] || echo "at least mbr must be written." [ -t "0" ] && echo "at least mbr must be written."
fi fi
#Compare actual hashes of /boot against saved hashes. #Compare actual hashes of /boot against saved hashes.
if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ] if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
then then
[ -z "$PS1" ] || echo "anything here, must be rewritten." [ -t "0" ] && echo "anything here, must be rewritten."
#if interactive ask if rewrite einzeln? #if interactive ask if rewrite einzeln?
[ -z "$PS1" ] || echo "find out which one?" [ -t "0" ] && echo "find out which one?"
#read z und so weiter.. #read z und so weiter..
fi fi
mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7 mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7