Fix ShellCheck

This commit is contained in:
Hugo van Kemenade 2025-02-15 21:34:25 +02:00
parent 216690ff17
commit 15e4c1a724

View File

@ -2,12 +2,12 @@
aptget_update()
{
if [ ! -z $1 ]; then
if [ -n "$1" ]; then
echo ""
echo "Retrying apt-get update..."
echo ""
fi
output=`sudo apt-get update 2>&1`
output=$(sudo apt-get update 2>&1)
echo "$output"
if [[ $output == *[WE]:\ * ]]; then
return 1