forked from kiss-community/kiss
fdf2775640
kiss' help output will now include all executables found in $PATH which begin with kiss-*. A comment string is optionally usable via setting the second line of the script to a string. Example: ... This also means that 'kiss <script name>' is also possible now. If I have a script in my $PATH called kiss-depends, I can now use it via kiss with 'kiss depends'.
19 lines
419 B
Bash
Executable File
19 lines
419 B
Bash
Executable File
#!/bin/sh -ef
|
|
# Copy a package's repository files into the current directory.
|
|
|
|
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"
|