From 14dfd5d359fbf7f9ff2520f2dd3c25895a61a9b3 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Sun, 4 Apr 2021 11:53:20 +0300 Subject: [PATCH] Fix install.sh README and SECURITY files are now removed after installation. However, you can still find them in the documentation. --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index efc960f..4850f8a 100644 --- a/install.sh +++ b/install.sh @@ -30,6 +30,8 @@ else mv bash_update.sh ~/.shellnotes/ mv uninstall.sh ~/.shellnotes/ mv update.sh ~/.shellnotes/ + rm -rf ./README.md + rm -rf ./SECURITY.md sudo mkdir /usr/local/man/man1 2>/dev/null sudo cp ~/.shellnotes/docs/manpages/* /usr/local/man/man1/ sudo gzip -f /usr/local/man/man1/*.1 @@ -40,7 +42,9 @@ else pip install pathlib sudo apt update chmod +x ~/.shellnotes.sh + echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version + if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]; then echo "source ~/.shellnotes/.shellnotes.sh" >> ~/.zshrc sed -i '1 i\#!/bin/zsh' ~/.shellnotes/.shellnotes.sh