From 05ebf3c77266a945408424c4444eaf29caa60d0c Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 27 Nov 2018 18:33:14 +0100 Subject: [PATCH] remove error pipe null --- home.admin/_bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index bd1b6e09..308bc1cd 100644 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -142,7 +142,7 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then # check if HDD contains already a configuration echo "Check if HDD contains already a configuration .." >> $logFile - configExists=$(ls ${configFile} 2>/dev/null | grep -c '.conf') + configExists=$(ls ${configFile} | grep -c '.conf') if [ ${configExists} -eq 1 ]; then // TODO: Migration and Recover echo "Found existing configuration - TODO migration and recover!" >> $logFile @@ -158,7 +158,7 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then # check if HDD cointains existing LND data (old RaspiBlitz Version) echo "Check if HDD contains existing LND data .." >> $logFile - lndDataExists=$(ls /mnt/hdd/lnd/lnd.conf 2>/dev/null | grep -c '.conf') + lndDataExists=$(ls /mnt/hdd/lnd/lnd.conf | grep -c '.conf') if [ ${lndDataExists} -eq 1 ]; then echo "Found existing LND data - old RaspiBlitz?" >> $logFile echo "state=olddata" > $infoFile