Skip to content

Commit a282b60

Browse files
committed
fix which
1 parent 94ef52b commit a282b60

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bash.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,11 +1178,9 @@ subnet_hex() {
11781178
# tip "lanip: '$(lanip)'"
11791179
lanip | tox1
11801180
}
1181-
if fn_exists which; then
1182-
:
1183-
elif fn_builtin_exists which; then
1184-
:
1185-
elif is_darwin; then
1181+
if fn_defined which; then
1182+
dbg "'which' has been defined."
1183+
else
11861184
which() { whereis "$@"; }
11871185
fi
11881186
if is_darwin; then

0 commit comments

Comments
 (0)