Skip to content

Commit 76bc73c

Browse files
committed
Fix issue while saving user-inputed credentials.
1 parent e67d412 commit 76bc73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyFunceble/engine/database/loader/credential.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def save_to_env_file(cls, environment_variables, env_file_path):
154154
regex = f"{name}=.*"
155155

156156
if not content:
157-
content += f"{to_write}\n"
157+
content = f"{to_write}\n"
158158
continue
159159

160160
if PyFunceble.helpers.Regex(f"^{regex}").get_matching_list(

0 commit comments

Comments
 (0)