fixed install.sh
This commit is contained in:
12
install.sh
12
install.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user