makedeb


tap 2.0.5-1


MPR in your pocket

Viewing /tap.postinst.

View raw.

Click here to go back to the Git tree for tap.

#!/usr/bin/env bash
set -e
needed_files=('/var/cache/tap/mpr-cache.json' '/var/cache/tap/pkglist')

for i in "${needed_files[@]}"; do
    dirname="$(dirname "${i}")"

    if ! [[ -d "${dirname}" ]]; then
        mkdir -p "${dirname}"
    fi

    if ! [[ -f "${i}" ]]; then
        touch "${i}"
    fi
done