Remove redundant calls to sudo

This commit is contained in:
Daniel - 2021-12-27 11:27:47 +01:00
parent c95ee52279
commit 1b673af022
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ function encode-with-ffmpeg() {
}
function run-apt-upgrade() {
local upgrade_seq='sudo systemd-inhibit --what=shutdown:idle:sleep /bin/bash -c "sudo apt clean && sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo tripwire --check --interactive"'
local upgrade_seq='sudo systemd-inhibit --what=shutdown:idle:sleep /bin/bash -c "apt clean && apt update && apt upgrade && apt autoremove && tripwire --check --interactive"'
local host=$1
if [[ -z $host ]]; then