Skip to content

Commit 7b78f6f

Browse files
committed
Provide message if not all packages found in list
Before, `update.sh` would exit without any messages if not all required packages were found in the package lists. Now, it tells the user what went wrong.
1 parent c58b933 commit 7b78f6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

update.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ do
154154
fi
155155
done < Packages
156156

157-
allfound || exit
157+
if ! allfound ; then
158+
echo "ERROR: Unable to find all required packages in package list!"
159+
cd ..
160+
exit 1
161+
fi
158162

159163
echo -e "\nDownloading packages..."
160164
curl -# --remote-name-all $packages_debs

0 commit comments

Comments
 (0)