From 76a35b8301be472cd5e13eafd953ecc93c20f34b Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 3 Nov 2021 13:44:37 +0100 Subject: [PATCH] Removed duplication of alias line in .bashrc --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index ac78b73..e37d764 100644 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,5 @@ #!/bin/bash -[[ $(uname) = "Linux" ]] || echo "alias sshin=\"~/sshin/sshin\"" >> ~/.bashrc; echo "run \"source ~/.bashrc\"";exit +[[ $(uname) = "Linux" ]] || grep "sshin" ~/.bashrc >/dev/null || echo "alias sshin=\"~/sshin/sshin\"" >> ~/.bashrc; echo "run \"source ~/.bashrc\"";exit PREFIX=~/.local/ mkdir $PREFIX/share/sshin