We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a666074 commit 4c2d1c2Copy full SHA for 4c2d1c2
modules/bash-commons/src/file.sh
@@ -57,7 +57,7 @@ function file_replace_or_append_text {
57
local readonly replacement_text="$2"
58
local readonly file="$3"
59
60
- if $(file_exists "$file") && $(file_contains_text "$original_text_regex" "$file"); then
+ if file_exists "$file" && file_contains_text "$original_text_regex" "$file"; then
61
file_replace_text "$original_text_regex" "$replacement_text" "$file"
62
else
63
file_append_text "$replacement_text" "$file"
0 commit comments