Skip to content

Commit

Permalink
Apply no sudo and no jmvenv to Darwin install path
Browse files Browse the repository at this point in the history
  • Loading branch information
dmp1ce committed Feb 9, 2022
1 parent b5be6a1 commit e620084
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ dar_deps_install ()
if ! brew install ${dar_deps[@]}; then
return 1
fi
echo "
sudo password required to run :

\`sudo pip3 install virtualenv\`
"
if ! sudo pip3 install virtualenv; then
sudo_command=''
if [ "$with_sudo" == 1 ]; then
echo "
sudo password required to run :
\`sudo pip3 install virtualenv\`
"
sudo_command="sudo"
fi
if $with_jmvenv && ! $sudo_command pip3 install virtualenv; then
return 1
fi
}
Expand Down

0 comments on commit e620084

Please sign in to comment.