mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01: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
|
||||
while read -r line; do
|
||||
# Increment the line number
|
||||
((line_number++))
|
||||
((line_number=line_number+1))
|
||||
|
||||
# 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
|
||||
sed -i "${line_number}i # The following line is commented out as does not contain a valid argument" "$file"
|
||||
# Increment as new line added
|
||||
((line_number++))
|
||||
((line_number=line_number+1))
|
||||
# Comment out the line
|
||||
sed -i "${line_number}s/^/# /" "$file"
|
||||
# Go to next line
|
||||
|
||||
Reference in New Issue
Block a user