From 02282dd3dc4dbb8f8463d2119681e947e45186aa Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 4 Oct 2015 20:51:14 +0200 Subject: [PATCH] interactive test fix #2 :-) --- hashboot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hashboot b/hashboot index 6a45a01..fd3fb1c 100755 --- a/hashboot +++ b/hashboot @@ -136,14 +136,14 @@ then #Compare actual hashes of MBR against saved hashes. if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] then - [ -z "$PS1" ] || echo "at least mbr must be written." + [ -t "0" ] && 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 - [ -z "$PS1" ] || echo "anything here, must be rewritten." + [ -t "0" ] && echo "anything here, must be rewritten." #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.. fi mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7