Skip to content

Commit f4dae40

Browse files
authored
Improve error handling
1 parent 414e6dd commit f4dae40

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pacboy -S binutils --noconfirm
55
rm -rf packages
66
mkdir packages
77

8-
package_names=(gnustep-make gnustep-base pcaudiolib espeak-ng nspr spidermonkey SDL)
8+
package_names=(gnustep-make gnustep-base nspr spidermonkey pcaudiolib espeak-ng SDL)
99

1010
for packagename in "${package_names[@]}"; do
1111
echo "Making $packagename package"
@@ -17,7 +17,10 @@ for packagename in "${package_names[@]}"; do
1717
echo "$packagename build failed!"
1818
exit 1
1919
fi
20-
pacman -U *$packagename*any.pkg.tar.zst --noconfirm
20+
if ! pacman -U *$packagename*any.pkg.tar.zst --noconfirm ; then
21+
echo "$packagename install failed!"
22+
exit 1
23+
fi
2124
rm -f ../packages/*$packagename*any.pkg.tar.zst
2225
mv *$packagename*any.pkg.tar.zst ../packages
2326
cd ..

0 commit comments

Comments
 (0)