Skip to content

Commit 5b10ffb

Browse files
authored
Return fullname
Updated filename handling to include fullname in output.
1 parent e14c778 commit 5b10ffb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ rename() {
1818
else
1919
fullname="${1}_${3}"
2020
fi
21-
# package file eg. mingw-w64-x86_64-libobjc2-2.3-3-any.pkg.tar.zst
2221
filename=$(ls $2 2>/dev/null)
2322
if [ -z "$filename" ]; then
2423
echo "❌ No file matching $3 found."
@@ -31,7 +30,7 @@ rename() {
3130
filename=$newname
3231
fi
3332

34-
echo "${filename}"
33+
echo "${filename}" "${fullname}"
3534
}
3635

3736
build_install() {
@@ -52,7 +51,8 @@ build_install() {
5251
exit 1
5352
fi
5453

55-
filename=$(rename $1 "*$1*any.pkg.tar.zst" $2)
54+
# package file eg. mingw-w64-x86_64-libobjc2-2.3-3-any.pkg.tar.zst
55+
read filename fullname <<< "$(rename $1 "*$1*any.pkg.tar.zst" $2)"
5656

5757
if ! pacman -U $filename --noconfirm ; then
5858
echo "$filename install failed!"

0 commit comments

Comments
 (0)