Another double quote on variable name

This commit is contained in:
2024-04-30 14:53:13 +02:00
parent be946462f5
commit f7000b4b84

View File

@@ -3,7 +3,7 @@
# Check if necessary packages are installed
necessary_packages=("pdflatex")
for package in ${necessary_packages}; do
for package in "${necessary_packages}"; do
if ! [dpkg -l "${package}" > /dev/null 2>&1]; then
echo "Error: ${package} is not installed."
exit 1