feat: Check deps: grep, sort, tar, unzip
This commit is contained in:
parent
ca98813232
commit
8dc3064128
14
warp4j
14
warp4j
@ -130,10 +130,16 @@ THIS_PLATFORM=$(get_this_platform)
|
||||
|
||||
# checks if all dependencies are available
|
||||
function check_deps() {
|
||||
local deps=("warp-packer" \
|
||||
"curl" \
|
||||
"awk" \
|
||||
"sed")
|
||||
local deps=(
|
||||
"awk" \
|
||||
"curl" \
|
||||
"grep" \
|
||||
"sed" \
|
||||
"sort" \
|
||||
"tar" \
|
||||
"unzip" \
|
||||
"warp-packer" \
|
||||
)
|
||||
local missing=()
|
||||
for d in ${deps[@]}; do
|
||||
if ! command -v $d &> /dev/null ; then
|
||||
|
Loading…
Reference in New Issue
Block a user