feat(lib): shell: +check-tool
This commit is contained in:
6
lib/shell/check-tool.sh
Normal file
6
lib/shell/check-tool.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
check_tool() {
|
||||
if ! command -v "$1" >/dev/null; then
|
||||
echo "Required tool \`$2\` are not installed or binary \`$1\` not found." >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user