mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Solve addition error
https://github.com/alexbelgium/hassio-addons/issues/1175
This commit is contained in:
@@ -34,7 +34,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
line_number=0
|
line_number=0
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
# Increment the line number
|
# Increment the line number
|
||||||
((line_number++))
|
((line_number=line_number+1))
|
||||||
|
|
||||||
# Check if lines starting with auth-user-pass have a valid argument
|
# Check if lines starting with auth-user-pass have a valid argument
|
||||||
###################################################################
|
###################################################################
|
||||||
@@ -46,7 +46,7 @@ if bashio::config.true 'openvpn_enabled'; then
|
|||||||
# Insert to explain why a comment is made
|
# Insert to explain why a comment is made
|
||||||
sed -i "${line_number}i # The following line is commented out as does not contain a valid argument" "$file"
|
sed -i "${line_number}i # The following line is commented out as does not contain a valid argument" "$file"
|
||||||
# Increment as new line added
|
# Increment as new line added
|
||||||
((line_number++))
|
((line_number=line_number+1))
|
||||||
# Comment out the line
|
# Comment out the line
|
||||||
sed -i "${line_number}s/^/# /" "$file"
|
sed -i "${line_number}s/^/# /" "$file"
|
||||||
# Go to next line
|
# Go to next line
|
||||||
|
|||||||
Reference in New Issue
Block a user