We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ddd2a commit d76b3d7Copy full SHA for d76b3d7
share/sh_functions/__tykky_get_env_path
@@ -15,8 +15,14 @@ __tykky_get_env_path() {
15
for __tykky_path in ${TYKKY_PATH:-""}; do
16
IFS=$oldIFS
17
if [ -d "$__tykky_path/$1" ]; then
18
- __candidate="${__tykky_path%/}/${1%/}"
19
- break
+ if [ -n "$__candidate" ]; then
+ echo "WARNING: Additional candidate tykky environments found in TYKKY_PATH for $1, only the first one will be considered" >&2
20
+ echo -e "\tfirst candidate: $__candidate" >&2
21
+ echo -e "\tnew candidate: $__tykky_path/$1" >&2
22
+ else
23
+ __candidate="${__tykky_path%/}/${1%/}"
24
+ fi
25
+ #break
26
fi
27
done
28
if [ -d "$1" ];then
0 commit comments