fixed #1 and stderr perm issue
All checks were successful
/ Lint Check Shellscripts (push) Successful in 16s
All checks were successful
/ Lint Check Shellscripts (push) Successful in 16s
This commit is contained in:
5
penv
5
penv
@@ -62,8 +62,8 @@ create(){
|
|||||||
mkdir -p "$HOME"/.envs
|
mkdir -p "$HOME"/.envs
|
||||||
/usr/bin/python"$vers" -m venv "$HOME"/.envs/"$name"
|
/usr/bin/python"$vers" -m venv "$HOME"/.envs/"$name"
|
||||||
source "$HOME"/.envs/"$name"/bin/activate
|
source "$HOME"/.envs/"$name"/bin/activate
|
||||||
python -m pip install ipykernel ipywidgets > /dev/stderr
|
python -m pip install ipykernel ipywidgets
|
||||||
python -m ipykernel install --user --name "$name" > /dev/stderr
|
python -m ipykernel install --user --name "$name"
|
||||||
echo
|
echo
|
||||||
echo "Created \"$name\". It should be available as a Jupyter Kernel."
|
echo "Created \"$name\". It should be available as a Jupyter Kernel."
|
||||||
echo "Use \"pact $name\" to activate in command line."
|
echo "Use \"pact $name\" to activate in command line."
|
||||||
@@ -130,6 +130,7 @@ install() {
|
|||||||
echo PENV already installed
|
echo PENV already installed
|
||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
mkdir -p "$HOME/.local/bin"
|
||||||
cp $(realpath "$0") "$HOME"/.local/bin/
|
cp $(realpath "$0") "$HOME"/.local/bin/
|
||||||
mkdir -p "$HOME"/.envs/
|
mkdir -p "$HOME"/.envs/
|
||||||
echo "
|
echo "
|
||||||
|
|||||||
Reference in New Issue
Block a user