view src/which.sh @ 32884:27ce9b18f1d5 v9.0.1751

patch 9.0.1751: CI: labeler configuration not found Commit: https://github.com/vim/vim/commit/8b8f7d19f89069a2100b2790bc4701e2a7d03a8b Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat Aug 19 15:46:11 2023 +0200 patch 9.0.1751: CI: labeler configuration not found Problem: CI: labeler configuration not found (after 9.0.1748) Solution: set configuration path closes: #12852 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2023 16:00:05 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

#! /bin/sh
#
# which.sh -- find where an executable is located.  It's here because the
# "which" command is not supported everywhere.  Used by Makefile.

IFS=":"
for ac_dir in $PATH; do
	if test -f "$ac_dir/$1"; then
		echo "$ac_dir/$1"
		break
	fi
done