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
|
# checks if all dependencies are available
|
||||||
function check_deps() {
|
function check_deps() {
|
||||||
local deps=("warp-packer" \
|
local deps=(
|
||||||
"curl" \
|
"awk" \
|
||||||
"awk" \
|
"curl" \
|
||||||
"sed")
|
"grep" \
|
||||||
|
"sed" \
|
||||||
|
"sort" \
|
||||||
|
"tar" \
|
||||||
|
"unzip" \
|
||||||
|
"warp-packer" \
|
||||||
|
)
|
||||||
local missing=()
|
local missing=()
|
||||||
for d in ${deps[@]}; do
|
for d in ${deps[@]}; do
|
||||||
if ! command -v $d &> /dev/null ; then
|
if ! command -v $d &> /dev/null ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user