minor changes

This commit is contained in:
Solomon Laing 2021-08-29 16:08:13 +09:30
parent 13a6cfac98
commit 493c79a352

View File

@ -69,7 +69,7 @@ do
fi fi
if ! yay -Qi $dependency &> /dev/null; then if ! yay -Qi $dependency &> /dev/null; then
failures+=("$dependency\n") failures+=("$dependency")
fi fi
done done
@ -85,7 +85,7 @@ if [ $laptop -eq 1 ]; then
fi fi
if ! yay -Qi $dependency &> /dev/null; then if ! yay -Qi $dependency &> /dev/null; then
failures+=("$dependency\n") failures+=("$dependency")
fi fi
done done
fi fi
@ -94,6 +94,7 @@ total_failures=$((${#failures[@]}))
if [ $total_failures -gt 0 ]; then if [ $total_failures -gt 0 ]; then
echo "Some of the programs failed to install..." echo "Some of the programs failed to install..."
echo "$total_failures"
echo -e "$failures" echo -e "$failures"
echo "Please manually rectify this and then rerun this setup with: ./setup deps" echo "Please manually rectify this and then rerun this setup with: ./setup deps"
exit 1 exit 1