From 4c045dfb49f9f6472f91aba9c93ecd1abb78f4a2 Mon Sep 17 00:00:00 2001 From: Jay Rogers Date: Mon, 8 Jan 2024 17:13:38 -0600 Subject: [PATCH] Changed to printf instead of echo for "lineinfile" --- lib/actions/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/init.sh b/lib/actions/init.sh index 007a368b..c9146193 100755 --- a/lib/actions/init.sh +++ b/lib/actions/init.sh @@ -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