misc: nit

This commit is contained in:
Dylan Araps 2021-07-17 07:43:15 +03:00
parent f264baaaf9
commit 65f553e053
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

14
kiss
View File

@ -443,7 +443,7 @@ pkg_extract() {
mkcd "$mak_dir/$1/$dest" mkcd "$mak_dir/$1/$dest"
esac esac
case $_res in case $_res in '') ;;
git+*) git+*)
# Split the source into URL + OBJECT (branch or commit). # Split the source into URL + OBJECT (branch or commit).
url=${_res##git+} com=${url##*[@#]} com=${com#${url%[#@]*}} url=${_res##git+} com=${url##*[@#]} com=${com#${url%[#@]*}}
@ -466,10 +466,6 @@ pkg_extract() {
unzip "$_res" unzip "$_res"
;; ;;
'')
# Blank lines / Comments.
;;
*) *)
cp -Rf "$_res" . cp -Rf "$_res" .
;; ;;
@ -659,11 +655,9 @@ pkg_manifest() {
cd "${2:-$pkg_dir}/$1" cd "${2:-$pkg_dir}/$1"
# find: Print all files and directories and append '/' to directories. # Create a list of all files and directories. Append '/' to the end of
{ # directories so they can be easily filtered out later.
find . -type d -exec printf '%s/\n' {} + find . -type d -exec printf '%s/\n' {} + -o ! -type d -print |
find . ! -type d -print
} |
# sort: Sort the output in *reverse*. Directories appear *after* their # sort: Sort the output in *reverse*. Directories appear *after* their
# contents. # contents.