Little improvement for headless update.sh script

Hi,
in the headless package there is a handy little script which is able to perform an easy upgrade to the most recent version. It relies on jq to extract the current upgrade URL but this means that jq should be installed :smiley:
A little proposal for a preliminary check

#!/bin/bash

# Check if jq is available
if ! command -v jq &>/dev/null
then
        echo "Please install jq first"
        exit
fi

# Release channel is passed as first argument.
...

Have a nice day
Gaetano

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.