From eb5ac23bce2f9af631633d5f016a59485b42169b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sat, 7 Dec 2019 16:24:53 +0000 Subject: [PATCH] Allow for nonexistence of files --- scripts/bordergen.sh | 4 ++-- scripts/dotset.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/bordergen.sh b/scripts/bordergen.sh index 1c64f8b..468ce50 100755 --- a/scripts/bordergen.sh +++ b/scripts/bordergen.sh @@ -7,12 +7,12 @@ csub=$(sed '2!d' ~/.cache/wal/colors) mkdir -p ~/.config/tint2 cp ~/.linux/dots/tint2rctemplate ~/.config/tint2/plac sed -i "s/TEMPLATE/${csub}/g" ~/.config/tint2/plac -rm ~/.config/tint2/tint2rc +rm -f ~/.config/tint2/tint2rc mv ~/.config/tint2/plac ~/.config/tint2/tint2rc killall -SIGUSR1 tint2 # Create new .conkyrc cp ~/.linux/dots/conkytemplate ~/conkyplac sed -i "s/COLOURTEMPLATE/${csub}/g" ~/conkyplac -rm ~/.conkyrc +rm -f ~/.conkyrc mv ~/conkyplac ~/.conkyrc diff --git a/scripts/dotset.sh b/scripts/dotset.sh index 19223ed..95b2353 100755 --- a/scripts/dotset.sh +++ b/scripts/dotset.sh @@ -6,15 +6,16 @@ mv ~/mdddots ~/.linux # Get rid of existing files -rm ~/.zshrc ~/.gitconfig ~/.XCompose -rm ~/.config/cmus/rc -rm ~/.oh-my-zsh/custom/aliases +rm -f ~/.zshrc ~/.gitconfig ~/.XCompose +rm -f ~/.config/cmus/rc +rm -f ~/.oh-my-zsh/custom/aliases # Symlink files from git repo ln -s ~/.linux/dots/.zshrc ~ ln -s ~/.linux/dots/aliases ~/.oh-my-zsh/custom ln -s ~/.linux/dots/.gitconfig ~ ln -s ~/.linux/dots/.XCompose ~ +mkdir =p ~/.config/cmus ln -s ~/.linux/dots/cmus/rc ~/.config/cmus ## Prepare for colorus