Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Oct 25, 2023
1 parent b20deb9 commit 413a853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
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##*/}")
dir=$(dirname "$1")
(cd "$dir" &>/dev/null && printf "%s/%s" "$PWD" "${1##*/}")
}
# Navigate to the directory where the current script resides
Expand Down

0 comments on commit 413a853

Please sign in to comment.