#!/usr/bin/env bash function plugin() { if [[ ! -d "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" ]]; then log e "Directory '${1}' does not exist!" exit 1 fi local dir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/data/plugins" curl -L "${2}" -o "${dir}/($(echo ${2} | awk -F/ '{print $NF}')" }