mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
clean up lnd.conf from empty lines
This commit is contained in:
parent
4444bd191c
commit
3b22b7a100
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue