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

View file

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