1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-23 06:51:04 +01:00
void-packages/common/environment/install/extglob.sh

19 lines
324 B
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
# This provides the extglob function to expand wildcards in the destdir
expand_destdir() {
local result= glob= file=
(
set -f
for glob in $@; do
files=$(echo "${PKGDESTDIR}/${glob}")
set +f
for file in $files; do
result+="${blank}${file#$PKGDESTDIR/}"
blank=" "
done
done
echo "$result"
)
}