Commit 4e9ebe68 authored by Sumit Sahrawat's avatar Sumit Sahrawat

Remove redundant use of 'tr'

parent a20ab93b
......@@ -22,7 +22,7 @@ fi
# If ipython is installed, and has a major version >= 3, then use the
# installed version. Otherwise we install from scratch.
if [ -n "$(which ipython)" ] && { [ $(ipython --version | tr '.' ' ' | cut -f 1 -d ' ') -ge 3 ]; } then
if [ -n "$(which ipython)" ] && { [ $(ipython --version | cut -f 1 -d '.') -ge 3 ]; } then
echo "Using ipython already installed: $(which ipython)"
else
# Install IPython.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment