Skip to content

Commit

Permalink
Merge pull request #5639 from hjoliver/swarm-fix
Browse files Browse the repository at this point in the history
Tweak swarm configure.
  • Loading branch information
oliver-sanders authored Jul 25, 2023
2 parents 9d444b2 + 63f2718 commit ec8b01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/bin/swarm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ec8b01d

Please sign in to comment.