diff options
author | Morten Linderud <foxboron@archlinux.org> | 2024-02-10 12:46:08 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2024-03-09 00:49:24 +0100 |
commit | 40f476c649e2c1938c391575f4339c6f50b97e7c (patch) | |
tree | fc016d7ab27cfaf0e9a70fdd7a9e57250b198513 /src/lib/build/build.sh | |
parent | 509dd24bdcd6c45bd86937fcd1de6fd1fa510441 (diff) | |
download | devtools-40f476c649e2c1938c391575f4339c6f50b97e7c.tar.xz |
fix(pkgctl): skip path arguments that are not directories
Several subcommands accept multiple paths in a way that passing a
wildcard is an expected use case. Previously this wasn't possible if the
main directory contained any text files or scripts.
Fix this by skipping none directory paths for such commands.
Component: pkgctl
Signed-off-by: Morten Linderud <foxboron@archlinux.org>
Diffstat (limited to 'src/lib/build/build.sh')
-rw-r--r-- | src/lib/build/build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh index 171bb9a..c35d70f 100644 --- a/src/lib/build/build.sh +++ b/src/lib/build/build.sh @@ -319,6 +319,10 @@ pkgctl_build() { fi for path in "${paths[@]}"; do + # skip paths that are not directories + if [[ ! -d "${path}" ]]; then + continue + fi pushd "${path}" >/dev/null if [[ ! -f PKGBUILD ]]; then |