mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 23:23:31 +00:00
12 lines
245 B
Bash
12 lines
245 B
Bash
|
#! /bin/sh
|
||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
# Reduced version of which -a using command utility
|
||
|
|
||
|
case $PATH in
|
||
|
(*[!:]:) PATH="$PATH:" ;;
|
||
|
esac
|
||
|
|
||
|
for ELEMENT in $(echo $PATH | tr ":" "\n"); do
|
||
|
PATH=$ELEMENT command -v "$@"
|
||
|
done
|