blob: ee349f437198ffd7627e48153f56b36ad79e7dd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
case "$1" in
(*.*)
f="$(find / -type f -name "$(echo "$1.ucxs" | awk '{sub(/\./,"_");print}')")"
[ -f "$f" ] && echo "$f"
;;
(*)
while read -r dir
do
find "$dir" -type f -name "$1.ucx" && break
done <<PATH
$(echo "$UCX_PATH" | awk '{gsub(/:/,ORS);print}')
PATH
esac
|