Skip to content

Commit

Permalink
fix missing function name on ubuntu bash
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Oct 25, 2023
1 parent 89ccf2c commit e63a248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#!/bin/bash
# Function that computes absolute path of a file
function abs_path {
abs_path {
# Navigate to the directory of the given file (silencing output) and then print
# the present working directory followed by the base name of the file
(cd "$(dirname '$1')" &>/dev/null && printf "%s/%s" "$PWD" "${1##*/}")
Expand All @@ -49,7 +49,7 @@
# If the 'venv' directory doesn't exist, print a message and exit.
if [[ ! -d "venv" ]]; then
echo "The 'venv' directory does not exist, creating..."
if [[ "$IN_ACTIVATED_ENV" == "1" ]]; then
if [[ "$IN_ACTIVATED_ENV" == "1" ]]; thenf
echo "Cannot install a new environment while in an activated environment. Please launch a new shell and try again."
exit 1
fi
Expand Down

0 comments on commit e63a248

Please sign in to comment.