mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
Add function command_exists
This commit is contained in:
@@ -5,6 +5,10 @@ KERNEL=$(uname -s)
|
|||||||
|
|
||||||
function output() { echo -e "\033[32mctop-install\033[0m $@"; }
|
function output() { echo -e "\033[32mctop-install\033[0m $@"; }
|
||||||
|
|
||||||
|
function command_exists() {
|
||||||
|
command -v "$@" > /dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
# extract github download url matching pattern
|
# extract github download url matching pattern
|
||||||
function extract_url() {
|
function extract_url() {
|
||||||
match=$1; shift
|
match=$1; shift
|
||||||
|
|||||||
Reference in New Issue
Block a user