Skip to content

Commit

Permalink
[ci skip] Update script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lord63 committed Jun 2, 2020
1 parent 877f923 commit 4f8065a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Initialize with script

$ curl -s https://raw.githubusercontent.com/lord63/tldr.py/master/install.sh | bash

Initialize by hand
~~~~~~~~~~~~~~~~~~
Or you can initialize by hand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- firstly, clone the tldr repo to somewhere(e.g. ~/code/tldr). We will
use it when we look for a command usage.
Expand Down
13 changes: 1 addition & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ main() {
echo 'Error: git is not installed.'
exit 1
fi
if ! [ -x "$(command -v pip)" ]; then
echo 'Error: pip is not installed.'
exit 1
fi
if [ -f ~/.tldrrc ]; then
echo "found ~/.tldrrc, skip install process"
exit 1
Expand All @@ -21,14 +17,7 @@ main() {
fi

echo "clone tldr pages..."
git clone [email protected]:tldr-pages/tldr.git "$tldr_pages_path"

echo "install tldr.py..."
if [[ `which python | grep -o '/usr'` == "/usr" ]]; then
sudo pip install -U tldr.py
else
pip install -U tldr.py
fi
git clone https://github.com/tldr-pages/tldr.git "$tldr_pages_path"

echo "init tldr.py..."
platform="unknown"
Expand Down

0 comments on commit 4f8065a

Please sign in to comment.