|
@@ -29,11 +29,14 @@ discover() {
|
29
|
29
|
t_apath=$(dirname "$(readlink -f "$t_cand")")
|
30
|
30
|
t_rpath=${t_apath#$s_dir/}
|
31
|
31
|
s_id=$(jattool sfind -f id "$s_dir")
|
32
|
|
- debug -v s_dir s_id t_apath t_rpath
|
|
32
|
+ s_ver=$(jattool sfind -f version "$s_dir")
|
|
33
|
+ t_id=$s_id$t_rpath
|
|
34
|
+ t_path=$s_dir/$t_rpath
|
|
35
|
+ debug -v s_dir s_id t_apath t_rpath t_id t_path
|
33
|
36
|
case $Fmt in
|
34
|
|
- path) echo "$s_dir/$t_rpath" ;;
|
35
|
|
- id) echo "$s_id$t_rpath" ;;
|
36
|
|
- version) jattool sfind -f version "$s_dir" ;;
|
|
37
|
+ path) echo "$t_path" ;;
|
|
38
|
+ id) echo "$t_id" ;;
|
|
39
|
+ version) echo "$s_ver" ;;
|
37
|
40
|
esac
|
38
|
41
|
done
|
39
|
42
|
}
|