commandname appears unused. Verify it or export it.
local commandname="ALERT"
physmemtotal appears unused. Verify it or export it.
physmemtotal=$(numfmt --to=iec --from=iec --suffix=B "$(grep ^MemTotal /proc/meminfo | awk '{print $2}')K")
days appears unused. Verify it or export it.
days=$(( uptime/60/60/24 ))
filesystem appears unused. Verify it or export it.
filesystem=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $1}')
load appears unused. Verify it or export it.
load=$(uptime|awk -F 'load average: ' '{ print $2 }')
physmemfree appears unused. Verify it or export it.
physmemfree=$(numfmt --to=iec --from=iec --suffix=B "$(grep ^MemAvailable /proc/meminfo | awk '{print $2}')K")
availspace appears unused. Verify it or export it.
availspace=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $4}')
glibcversion appears unused. Verify it or export it.
glibcversion="$(ldd --version | sed -n '1s/.* //p')"
hours appears unused. Verify it or export it.
hours=$(( uptime/60/60%24 ))
physmemcached appears unused. Verify it or export it.
physmemcached="n/a"
minutes appears unused. Verify it or export it.
minutes=$(( uptime/60%60 ))
physmemtotalmb appears unused. Verify it or export it.
physmemtotalmb=$(($(grep MemTotal /proc/meminfo | awk '{print $2}')/1024))
lastbackupdate appears unused. Verify it or export it.
lastbackupdate=$(date -r "${lastbackup}")
lastbackupdaysago appears unused. Verify it or export it.
lastbackupdaysago=$(( ( $(date +'%s') - $(date -r "${lastbackup}" +'%s') )/60/60/24 ))
totalspace appears unused. Verify it or export it.
totalspace=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $2}')
backupcount appears unused. Verify it or export it.
backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
arch appears unused. Verify it or export it.
arch=$(uname -m)
swapfree appears unused. Verify it or export it.
swapfree=$(numfmt --to=iec --from=iec --suffix=B "$(grep ^SwapFree /proc/meminfo | awk '{print $2}')K")
lastbackupsize appears unused. Verify it or export it.
lastbackupsize=$(du -h "${lastbackup}" | awk '{print $1}')
usedspace appears unused. Verify it or export it.
usedspace=$(df -hP "${rootdir}" | grep -v "Filesystem" | awk '{print $3}')
tmuxv appears unused. Verify it or export it.
tmuxv=$(tmux -V)
swapused appears unused. Verify it or export it.
swapused=$(numfmt --to=iec --from=iec --suffix=B "$(($(grep ^SwapTotal /proc/meminfo | awk '{print $2}')-$(grep ^SwapFree /proc/meminfo | awk '{print $2}')))K")
masterserver appears unused. Verify it or export it.
masterserver="false"
kernel appears unused. Verify it or export it.
kernel=$(uname -r)
swaptotal appears unused. Verify it or export it.
swaptotal=$(numfmt --to=iec --from=iec --suffix=B "$(grep ^SwapTotal /proc/meminfo | awk '{print $2}')K")
physmemavailable appears unused. Verify it or export it.
physmemavailable="n/a"
physmemused appears unused. Verify it or export it.
physmemused=$(numfmt --to=iec --from=iec --suffix=B "$(($(grep "^MemTotal\:" /proc/meminfo | awk '{print $2}')-$(grep "^MemFree\:" /proc/meminfo | awk '{print $2}')-$(grep "^Buffers\:" /proc/meminfo | awk '{print $2}')-$(grep "^Cached\:" /proc/meminfo | awk '{print $2}')-$(grep "^SReclaimable\:" /proc/meminfo | awk '{print $2}')))K")
commandname appears unused. Verify it or export it.
local commandname="CHECK"
legacymode appears unused. Verify it or export it.
legacymode=1
commandname appears unused. Verify it or export it.
local commandname="UPDATE LinuxGSM"
Double quote to prevent globbing and word splitting.
${executable} ${parms} -debug
Double quote to prevent globbing and word splitting.
${executable} ${parms}
getopt appears unused. Verify it or export it.
getopt="abc123"
commandaction appears unused. Verify it or export it.
local commandaction="Fix"
commandname appears unused. Verify it or export it.
local commandname="CHECK"
commandname appears unused. Verify it or export it.
local commandname="CHECK"
commandname appears unused. Verify it or export it.
local commandname="INSTALL"
commandname appears unused. Verify it or export it.
local commandname="UPDATE"
commandname appears unused. Verify it or export it.
local commandname="CONSOLE"