feat: Check deps: grep, sort, tar, unzip

This commit is contained in:
Serge Guzik 2019-02-13 13:00:57 +02:00
parent ca98813232
commit 8dc3064128

14
warp4j
View File

@ -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