interactive test test

This commit is contained in:
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}
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}