From 1728f734e17cb4112676f3fd31166d575cb8754c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 9 Jan 2021 16:41:35 -0500 Subject: [PATCH] create url file if not present --- larbs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/larbs.sh b/larbs.sh index 3315fde..53fc3ab 100644 --- a/larbs.sh +++ b/larbs.sh @@ -206,6 +206,11 @@ yes | sudo -u "$name" $aurhelper -S libxft-bgra-git >/dev/null 2>&1 # Install the dotfiles in the user's home directory putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch" rm -f "/home/$name/README.md" "/home/$name/LICENSE" "/home/$name/FUNDING.yml" +# Create default urls file if none exists. +[ ! -f "/home/$name/.config/newsboat/urls" ] && echo "http://lukesmith.xyz/rss.xml +https://notrelated.libsyn.com/rss +https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA \"~Luke Smith (YouTube)\" +https://www.archlinux.org/feeds/news/" > "/home/$name/.config/newsboat/urls" # make git ignore deleted LICENSE & README.md files git update-index --assume-unchanged "/home/$name/README.md" "/home/$name/LICENSE" "/home/$name/FUNDING.yml"