style(scripts): quoted the empty CDPATH assignment in link-omp.sh
`CDPATH=` already cleared the variable for the `cd` subshell, so this is a readability-only change: `CDPATH=''` is the identical POSIX assignment written with explicit empty quotes. No behavior change, and there was no CDPATH leak to fix.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
# write under `/` — see https://github.com/can1357/oh-my-pi/issues/3701.
|
||||
set -e
|
||||
|
||||
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)
|
||||
repo_root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd -P)
|
||||
target=$repo_root/packages/coding-agent/scripts/omp
|
||||
|
||||
if [ ! -x "$target" ]; then
|
||||
|
||||
Reference in New Issue
Block a user