From ed1511441ccf7fc3da35c94597106bd8b8f8d50a Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 4 Oct 2015 20:44:47 +0200 Subject: [PATCH] interactive test test --- hashboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashboot b/hashboot index c5d5358..18c3f8b 100755 --- a/hashboot +++ b/hashboot @@ -71,7 +71,7 @@ then #If not found, create one and ask for ${MBR_DEVICE} else #Create ${CONFIG_FILE} with defaults if noninterctive - if [ -z "$PS1" ] + if [ -t "0" ] then echo "#Device with the MBR on it" > ${CONFIG_FILE} echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE}