Use ${PWD} instead of $(pwd)

Don't subshell when there's a shell parameter for it.
This commit is contained in:
John D Pell
2021-09-18 13:15:13 -07:00
parent 1f6d6aa147
commit 5fc418e479
4 changed files with 5 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ EOF
((c++))
done
if [ -z "$name" ]; then
repo=$(basename "$(pwd)")
repo="$(basename "${PWD}")"
fi
case "$prev" in
-d|-h)