aboutsummaryrefslogtreecommitdiff
path: root/link.sh
diff options
context:
space:
mode:
Diffstat (limited to 'link.sh')
-rwxr-xr-xlink.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/link.sh b/link.sh
index 41a7b5c..e3c987f 100755
--- a/link.sh
+++ b/link.sh
@@ -2,7 +2,7 @@
set -e
timestamp="$(date +%m.%d.%Y)"
-if ! [ -L "$HOME/.waylandrc" ] ; then
+if [ -e "$HOME/.waylandrc" ] && ! [ -L "$HOME/.waylandrc" ] ; then
mv "$HOME"/.waylandrc "$HOME"/.waylandrc-"$timestamp"
fi