interactive test test

pull/1/head
tastytea 2015-10-04 20:44:47 +02:00
parent 6df2751a13
commit ed1511441c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ then
#If not found, create one and ask for ${MBR_DEVICE} #If not found, create one and ask for ${MBR_DEVICE}
else else
#Create ${CONFIG_FILE} with defaults if noninterctive #Create ${CONFIG_FILE} with defaults if noninterctive
if [ -z "$PS1" ] if [ -t "0" ]
then then
echo "#Device with the MBR on it" > ${CONFIG_FILE} echo "#Device with the MBR on it" > ${CONFIG_FILE}
echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE} echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE}