fpf-cli 1.6.50 → 1.6.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/fpf-go-darwin-amd64
CHANGED
|
Binary file
|
package/bin/fpf-go-darwin-arm64
CHANGED
|
Binary file
|
package/bin/fpf-go-linux-amd64
CHANGED
|
Binary file
|
package/bin/fpf-go-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/fpf
CHANGED
|
@@ -7,6 +7,7 @@ try_exec_packaged_go_binary() {
|
|
|
7
7
|
return
|
|
8
8
|
fi
|
|
9
9
|
|
|
10
|
+
local script_path=""
|
|
10
11
|
local script_dir=""
|
|
11
12
|
local uname_s=""
|
|
12
13
|
local uname_m=""
|
|
@@ -14,7 +15,8 @@ try_exec_packaged_go_binary() {
|
|
|
14
15
|
local goarch=""
|
|
15
16
|
local candidate=""
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
script_path="$(resolve_script_path "${BASH_SOURCE[0]}")"
|
|
19
|
+
script_dir="$(cd -P "$(dirname "${script_path}")" && pwd)"
|
|
18
20
|
uname_s="$(uname -s 2>/dev/null || true)"
|
|
19
21
|
uname_m="$(uname -m 2>/dev/null || true)"
|
|
20
22
|
|
|
@@ -58,10 +60,29 @@ try_exec_packaged_go_binary() {
|
|
|
58
60
|
fi
|
|
59
61
|
}
|
|
60
62
|
|
|
63
|
+
resolve_script_path() {
|
|
64
|
+
local source_path="$1"
|
|
65
|
+
local source_dir=""
|
|
66
|
+
local link_target=""
|
|
67
|
+
|
|
68
|
+
while [[ -h "${source_path}" ]]; do
|
|
69
|
+
source_dir="$(cd -P "$(dirname "${source_path}")" && pwd)"
|
|
70
|
+
link_target="$(readlink "${source_path}")"
|
|
71
|
+
if [[ "${link_target}" == /* ]]; then
|
|
72
|
+
source_path="${link_target}"
|
|
73
|
+
else
|
|
74
|
+
source_path="${source_dir}/${link_target}"
|
|
75
|
+
fi
|
|
76
|
+
done
|
|
77
|
+
|
|
78
|
+
source_dir="$(cd -P "$(dirname "${source_path}")" && pwd)"
|
|
79
|
+
printf "%s/%s" "${source_dir}" "$(basename "${source_path}")"
|
|
80
|
+
}
|
|
81
|
+
|
|
61
82
|
try_exec_packaged_go_binary "$@"
|
|
62
83
|
|
|
63
84
|
SCRIPT_NAME="fpf"
|
|
64
|
-
SCRIPT_VERSION="1.6.
|
|
85
|
+
SCRIPT_VERSION="1.6.51"
|
|
65
86
|
TMP_ROOT="${TMPDIR:-/tmp}/fpf"
|
|
66
87
|
SESSION_TMP_ROOT=""
|
|
67
88
|
HELP_FILE=""
|