Skip to content

Commit

Permalink
Changed to printf instead of echo for "lineinfile"
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Jan 8, 2024
1 parent 971324b commit 4c045df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ action_init() {

while IFS= read -r line || [[ -n "$line" ]]; do
if ! grep -Fxq "$line" "$dest_file" 2>/dev/null; then
echo "$line" >> "$dest_file"
printf "%s\n" "$line" >> "$dest_file"
file_name="${dest_file#"$project_directory/"}"
echo "\"$line\" has been added to \"$file_name\"."
fi
Expand Down

0 comments on commit 4c045df

Please sign in to comment.