This is great.
Watching this thread for another great stuff, such as support for curl as downloader tool in addition to wget and aria2.
# Try to get the height and width of the terminal window. These
# environment variables are usually available in interactive sessions,
# but they are not inherited by scripts.
#
# If the script is running within a terminal emulator window, then tput
# can be used to query its dimensions. This does not work within a cron
# job, though.
if [[ "${TERM}" != "dumb" ]] && type -P tput > /dev/null; then
COLUMNS="$(tput cols)" || true
LINES="$(tput lines)" || true
fi
# If the variables could not be set with tput, they will be set to
# default values.
COLUMNS="${COLUMNS:-80}"
LINES="${LINES:-24}"
export COLUMNS
export LINES
The updates runs now automatically and starts the same download-updates.bash again...
in my case not ideal, because I am running all my updates from another bash script (edited get-all-updates.bash)
# Stop this script, if one of download runs exits with an error code.
set -o errexit
lindesbs wrote:That is one of the most used options, when using the Windows tool.
Users browsing this forum: No registered users and 10 guests