Skip to content

Commit 525d3d8

Browse files
authored
Merge pull request #572 from futureisfoss/patch-1
Properly fix #558
2 parents cb9ba5d + 597ba68 commit 525d3d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

static/larbs.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,12 @@ installationloop
327327
# Install the dotfiles in the user's home directory, but remove .git dir and
328328
# other unnecessary files.
329329
putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch"
330-
[ -z "/home/$name/.config/newsboat/urls" ] &&
331-
echo "$rssurls" > "/home/$name/.config/newsboat/urls"
332330
rm -rf "/home/$name/.git/" "/home/$name/README.md" "/home/$name/LICENSE" "/home/$name/FUNDING.yml"
333331

332+
# Write urls for newsboat if it doesn't already exist
333+
[ -s "/home/$name/.config/newsboat/urls" ] ||
334+
sudo -u "$name" echo "$rssurls" > "/home/$name/.config/newsboat/urls"
335+
334336
# Install vim plugins if not alread present.
335337
[ ! -f "/home/$name/.config/nvim/autoload/plug.vim" ] && vimplugininstall
336338

0 commit comments

Comments
 (0)