mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Modify command use method: apt-get update
This commit is contained in:
parent
ebed556653
commit
a4e0754891
@ -405,10 +405,10 @@ apt_update_if_needed()
|
||||
if [ $UPDATE_AGE -gt 3600 ]
|
||||
then
|
||||
# update too old, refresh database
|
||||
$SUDO_CMD apt-get update -y >/dev/null 2>/dev/null
|
||||
$SUDO_CMD apt-get update >/dev/null 2>/dev/null
|
||||
fi
|
||||
else
|
||||
$SUDO_CMD apt-get update -y >/dev/null 2>/dev/null
|
||||
$SUDO_CMD apt-get update >/dev/null 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user