aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-fork
blob: 6e1245c623076a9b81fec87497bba5ae3308dfc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -ef

kiss s "${1:-null}" >/dev/null || {
    printf 'usage: kiss-fork pkg_name\n'
    exit 1
}

# Disable this warning as globbing is disabled and word splitting
# is intentional. This grabs the location of the package's files.
# shellcheck disable=2046
(
    set -- $(kiss s "$1")

    cp -r "$1" .
)

printf 'forked package to %s\n' "$PWD/$1"