We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14c778 commit 5b10ffbCopy full SHA for 5b10ffb
1 file changed
install.sh
@@ -18,7 +18,6 @@ rename() {
18
else
19
fullname="${1}_${3}"
20
fi
21
- # package file eg. mingw-w64-x86_64-libobjc2-2.3-3-any.pkg.tar.zst
22
filename=$(ls $2 2>/dev/null)
23
if [ -z "$filename" ]; then
24
echo "❌ No file matching $3 found."
@@ -31,7 +30,7 @@ rename() {
31
30
filename=$newname
32
33
34
- echo "${filename}"
+ echo "${filename}" "${fullname}"
35
}
36
37
build_install() {
@@ -52,7 +51,8 @@ build_install() {
52
51
exit 1
53
54
55
- filename=$(rename $1 "*$1*any.pkg.tar.zst" $2)
+ # package file eg. mingw-w64-x86_64-libobjc2-2.3-3-any.pkg.tar.zst
+ read filename fullname <<< "$(rename $1 "*$1*any.pkg.tar.zst" $2)"
56
57
if ! pacman -U $filename --noconfirm ; then
58
echo "❌ $filename install failed!"
0 commit comments