fixed install.sh

This commit is contained in:
Jon-William Lewis
2016-02-16 10:57:28 -06:00
parent 5d73b697ae
commit edbe049dee

View File

@@ -43,15 +43,13 @@ cat ./src/main/stage1.sns.sh >> "$S"
cat ./src/main/stage2.sns.sh >> "$S" cat ./src/main/stage2.sns.sh >> "$S"
cat ./src/main/stage3.sns.sh >> "$S" cat ./src/main/stage3.sns.sh >> "$S"
chmod u+x "$S" chmod +x "$S"
# Install SNS # Install SNS
if [ ! -r "/bin/sns" ] || [ grep "Simple Note System" < "/bin/sns" ]; if [ ! -r "/bin/sns" ]; then
sudo cp "$S" > "/bin/sns" sudo cp "$S" "/bin/sns"
fi fi
# Install Bash completion # Install Bash completion
if [ ! -r "/usr/share/bash-completion/completions/sns" ]\ if [ ! -r "/usr/share/bash-completion/completions/sns" ]; then
|| [ grep "Simple Note System" < "/usr/share/bash-completion/completions/sns" ]; then sudo cp "src/bash-completion/sns" "/usr/share/bash-completion/completions/sns"
sudo cp "src/bash-completion/sns" >\
"/usr/share/bash-completion/completions/sns"
fi fi
exit exit