"description":"Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.",
"description":"Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.",
# Function to fetch the version released prior to the latest version
get_previous_version(){
get_previous_version(){
sudo curl -s"$repo_url" | jq -r'del(.[].assets) | .[0].tag_name'# this would del the assets key and then get the second encountered tag_name's value from the filtered array of objects
local url=$1
local repo_url=$2
local variable_name=$3
local mode=$4
prev_version=${!variable_name}
output=$(curl -s"$repo_url");
check_packages jq
message=$(echo"$output" | jq -r'.message')
if[[$mode=='mode1']];then
message="API rate limit exceeded"
else
message=""
fi
if[[$message=="API rate limit exceeded"*]];then
echo-e"\nAn attempt to find latest version using GitHub Api Failed... \nReason: ${message}"
echo-e"\nAttempting to find latest version using GitHub tags."