From 63f27188cbe2a996834341118d0f868bd6141544 Mon Sep 17 00:00:00 2001 From: Hilary James Oliver Date: Tue, 25 Jul 2023 21:56:54 +1200 Subject: [PATCH] Tweak swarm configure. --- etc/bin/swarm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/bin/swarm b/etc/bin/swarm index 9233e1de1fb..dd8a65a78d6 100755 --- a/etc/bin/swarm +++ b/etc/bin/swarm @@ -204,7 +204,7 @@ append_config () { if prompt "Write \"$LINE\" to \"$LOC\"?"; then if [[ "$POS" == top ]]; then # ... at the top of the file - sed -i "1i$LINE" "$LOC" + echo -e "${LINE}\n$(cat ${LOC})" > "$LOC" elif [[ "$POS" == bottom ]]; then # ... at the bottom of the file echo -e "\n$LINE" >> "$LOC"