From a3f3ecce13c2e3be8dfb9587a0828d674b73497a 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 | 6 +++--- 2 files changed, 5 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..b2c7dcc 100755 --- a/scripts/dotset.sh +++ b/scripts/dotset.sh @@ -6,9 +6,9 @@ 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 ~