mkversion fix: make RE treat $(pwd) value literally. (#1088)

Fixes #1084.
This commit is contained in:
Mark Callow
2025-11-25 13:28:01 +09:00
committed by GitHub
parent 2aa509df42
commit 998a719d25

View File

@@ -160,7 +160,7 @@ if [ $write_all -eq 1 ]; then
fi
done
else
if [[ $workdir =~ $(pwd)(/(.*$)?)? ]]; then
if [[ $workdir =~ "$(pwd)"(/(.*$)?)? ]]; then
# Trailing part of workdir gives object location in repo.
if [ -n "${BASH_REMATCH[2]}" ]; then
if [ "$OBJ" == "." ]; then