mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
clean up lnd.conf from empty lines
This commit is contained in:
@@ -48,6 +48,13 @@ if [ "$1" == "prestart" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
##### CLEAN UP #####
|
||||
|
||||
# all lines with just spaces to empty lines
|
||||
sed -i 's/^[[:space:]]*$//g' /mnt/hdd/lnd/lnd.conf
|
||||
# all double empty lines to single empty lines
|
||||
sed -i '/^$/N;/^\n$/D' /mnt/hdd/lnd/lnd.conf
|
||||
|
||||
# set default chain parameter
|
||||
targetchain=$2
|
||||
if [ "${targetchain}" == "" ]; then
|
||||
|
Reference in New Issue
Block a user