Skip to content

update-script v3.0.0

Latest

Choose a tag to compare

@fernand3z fernand3z released this 30 Jan 15:05
· 1 commit to main since this release

Changelog

🔄 Changes & Fixes

1️⃣ PIP Update Change

  • Updated: Now the script only updates PIP itself, instead of upgrading all installed Python packages.
  • New PIP command:
    if command -v pip &> /dev/null; then
        echo "Updating PIP..."
        python3 -m pip install --upgrade pip
    fi

2️⃣ Docker Permission Fix

  • Fixed: Docker updates now check if the user is in the docker group before attempting updates.
  • If the user lacks permissions, the script now skips Docker updates and provides instructions to fix it.
  • New Behavior:
    if command -v docker &> /dev/null; then
        echo "Updating Docker images..."
        if groups | grep -q '\bdocker\b'; then
            docker images --format "{{.Repository}}" | xargs -L1 docker pull
        else
            echo "Skipping Docker updates: Run 'sudo usermod -aG docker $USER' and restart."
        fi
    fi

3️⃣ Podman Image Update Fix

  • Fixed: Prevents errors when there are no images available to update.
  • New Behavior:
    if command -v podman &> /dev/null; then
        echo "Updating Podman images..."
        podman_images=$(podman images --format "{{.Repository}}")
        if [ -n "$podman_images" ]; then
            echo "$podman_images" | xargs -L1 podman pull
        else
            echo "No Podman images found to update."
        fi
    fi

4️⃣ General Enhancements

  • Improved error handling.
  • Optimized command execution for better efficiency.
  • Enhanced logging to provide better user feedback.

🚀 Enjoy the latest improvements!

Let us know if you encounter any issues or have suggestions for future updates. 🎉

For more details and the latest updates, visit the main repository: [GitHub - update-script](https://github.com/fernand3z/update-script).