doas can't really remember authentication state across execution scopes

This commit is contained in:
Sam A. 2022-11-24 18:14:11 +01:00
parent 49a96ad29c
commit 7510a6dde8
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,10 @@ command -v rustup >/dev/null 2>&1 &&
command -v nvim >/dev/null 2>&1 &&
{ echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
command -v docker >/dev/null 2>&1 &&
[ "$(sudo docker images | wc -l)" -gt 1 ] &&
{ echo; sudo docker images |
awk '(NR>1) && ($2!~/none/) {print $1":"$2}' |
xargs -l sudo docker pull; }
{ echo; sudo sh -c "[ \"\$(docker images | wc -l)\" -gt 1 ] &&
docker images |
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
xargs -l docker pull"; }
echo
zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"