From b8c6f1e2b091a00f200903fd2c70e56466227778 Mon Sep 17 00:00:00 2001 From: Jon-William Lewis Date: Tue, 16 Feb 2016 11:13:41 -0600 Subject: [PATCH] removed redundant check --- install.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index a08f55c..b8b6302 100755 --- a/install.sh +++ b/install.sh @@ -48,22 +48,18 @@ chmod +x "$S" if [ ! -r "/bin/sns" ]; then sudo cp "$S" "/bin/sns" else - if [ -r "/bin/sns" ]; then - if grep "simple note system" "/bin/sns"; then - sudo rm /bin/sns - sudo cp "$S" "/bin/sns" - fi + if grep "simple note system" "/bin/sns"; then + sudo rm /bin/sns + sudo cp "$S" "/bin/sns" fi fi # Install Bash completion if [ ! -r "/usr/share/bash-completion/completions/sns" ]; then sudo cp "src/bash-completion/sns" "/usr/share/bash-completion/completions/sns" else - if [ -r "/usr/share/bash-completion/completions/sns" ]; then - if grep "simple note system" "/usr/share/bash-completion/completions/sns"; then - sudo rm /bin/sns - sudo cp "$S" "/bin/sns" + if grep "simple note system" "/usr/share/bash-completion/completions/sns"; then + sudo rm /bin/sns + sudo cp "$S" "/bin/sns" fi - fi fi exit