fix grep count

This commit is contained in:
rootzoll 2021-08-26 22:18:46 +02:00
parent fa1eb0e233
commit df8a3d426f

View File

@ -142,7 +142,7 @@ sudo chown admin:admin /mnt/hdd/.tmux.conf.local >> ${logFile} 2>&1
sudo ln -s -f /mnt/hdd/.tmux.conf.local /home/admin/.tmux.conf.local >> ${logFile} 2>&1
# make sure that ./bitcoin/debug.log is switched on
debugFile=$(cat /mnt/hdd/${network}/${network}.conf | grep "debuglogfile=")
debugFile=$(cat /mnt/hdd/${network}/${network}.conf | grep -c "debuglogfile=")
echo "debugFile(${debugFile})" >> ${logFile}
if [ "${debugFile}" == "0" ]; then
echo "# debug.log: Switching on" >> ${logFile}