mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-18 02:00:38 +03:00
Support local managment for embedded agent on nginx
This commit is contained in:
14
external/yq/scripts/install-man-page.sh
vendored
Executable file
14
external/yq/scripts/install-man-page.sh
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
my_path="$(command -v yq)"
|
||||
|
||||
if [ -z "$my_path" ]; then
|
||||
echo "'yq' wasn't found in your PATH, so we don't know where to put the man pages."
|
||||
echo "Please update your PATH to include yq, and run this script again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ex: ~/.local/bin/yq => ~/.local/
|
||||
my_prefix="$(dirname "$(dirname "$(command -v yq)")")"
|
||||
mkdir -p "$my_prefix/share/man/man1/"
|
||||
cp yq.1 "$my_prefix/share/man/man1/"
|
||||
Reference in New Issue
Block a user