From 46c4c77bbe95f842bd7bb02c2ed03471f5a73f2b Mon Sep 17 00:00:00 2001 From: xor Date: Sun, 4 Oct 2015 20:14:13 +0200 Subject: [PATCH] minor updates --- hashboot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hashboot b/hashboot index 4952490..9cefff7 100755 --- a/hashboot +++ b/hashboot @@ -127,14 +127,14 @@ then #Compare actual hashes of MBR against saved hashes. if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] then - echo "at least mbr must be written." + [ -z "$PS1" ] || echo "at least mbr must be written." fi #Compare actual hashes of /boot against saved hashes. if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ] then - echo "anything here, must be rewritten." + [ -z "$PS1" ] || echo "anything here, must be rewritten." #if interactive ask if rewrite einzeln? - echo "find out which one?" + [ -z "$PS1" ] || echo "find out which one?" #read z und so weiter.. fi mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7