deprecate wget, use curl instead
This commit is contained in:
@@ -22,7 +22,7 @@ TOOL="$TOOL;conn=$var_conn"
|
||||
function check_mailqueue {
|
||||
QUEUE=$($MSMTP_LIST | grep -o "^From: " | wc -l)
|
||||
OUT="$OUT;mq=$QUEUE"
|
||||
|
||||
|
||||
# If $QUEUE > 0 and >10 runs, show notification
|
||||
if [ "$QUEUE" -gt 0 ]; then
|
||||
var_mailqueue_runs=$(($var_mailqueue_runs + 1))
|
||||
@@ -32,13 +32,13 @@ function check_mailqueue {
|
||||
if [ "$QUEUE" -gt 0 ] && [ "$var_mailqueue_runs" -gt 9 ]; then
|
||||
notify-send "There are mails in the mailqueue. Remember sending them manually or switch online status."
|
||||
var_mailqueue_runs=0 # reset counter
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# SVN STATUS
|
||||
function check_svn {
|
||||
if isonline; then
|
||||
STATUS=$(wget -T 5 -q -O - $SVNSTATUS)
|
||||
STATUS=$(curl -m 5 -s -o - $SVNSTATUS)
|
||||
EXIT="$?"
|
||||
if ([ "$EXIT" == 4 ] || [ "$EXIT" == 6 ] || [ "$EXIT" == 28 ]); then
|
||||
SVN="t/o"
|
||||
|
||||
Reference in New Issue
Block a user