diff --git a/share/updateall/scripts.d/apt b/share/updateall/scripts.d/apt index ea78057..406b7fe 100755 --- a/share/updateall/scripts.d/apt +++ b/share/updateall/scripts.d/apt @@ -1,5 +1,5 @@ #!/bin/sh -[ "$USER" != root ] && exec sudo "$0" "$@" +[ "$(whoami)" != root ] && exec sudo "$0" "$@" apt-get update apt-get upgrade apt-get autoremove diff --git a/share/updateall/scripts.d/docker b/share/updateall/scripts.d/docker index 12ac4aa..f51b557 100755 --- a/share/updateall/scripts.d/docker +++ b/share/updateall/scripts.d/docker @@ -1,4 +1,4 @@ #!/bin/sh -[ "$USER" != root ] && exec "$0" "$@" +[ "$(whoami)" != root ] && exec "$0" "$@" docker images --format '{{.Repository}}' | xargs -L 1 docker pull