Fix install.sh

README and SECURITY files are now removed after installation.
However, you can still find them in the documentation.
This commit is contained in:
dmarakom6 2021-04-04 11:53:20 +03:00
parent 0611b388cb
commit 14dfd5d359

View file

@ -30,6 +30,8 @@ else
mv bash_update.sh ~/.shellnotes/ mv bash_update.sh ~/.shellnotes/
mv uninstall.sh ~/.shellnotes/ mv uninstall.sh ~/.shellnotes/
mv update.sh ~/.shellnotes/ mv update.sh ~/.shellnotes/
rm -rf ./README.md
rm -rf ./SECURITY.md
sudo mkdir /usr/local/man/man1 2>/dev/null sudo mkdir /usr/local/man/man1 2>/dev/null
sudo cp ~/.shellnotes/docs/manpages/* /usr/local/man/man1/ sudo cp ~/.shellnotes/docs/manpages/* /usr/local/man/man1/
sudo gzip -f /usr/local/man/man1/*.1 sudo gzip -f /usr/local/man/man1/*.1
@ -40,7 +42,9 @@ else
pip install pathlib pip install pathlib
sudo apt update sudo apt update
chmod +x ~/.shellnotes.sh chmod +x ~/.shellnotes.sh
echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version
if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]; then if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]; then
echo "source ~/.shellnotes/.shellnotes.sh" >> ~/.zshrc echo "source ~/.shellnotes/.shellnotes.sh" >> ~/.zshrc
sed -i '1 i\#!/bin/zsh' ~/.shellnotes/.shellnotes.sh sed -i '1 i\#!/bin/zsh' ~/.shellnotes/.shellnotes.sh