Remove fg

This commit is contained in:
Sam A. 2022-09-05 20:04:01 +02:00
parent e8dc764ca0
commit 25c32fb206
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -15,14 +15,19 @@ elif [ "$(uname -o)" = "GNU/Linux" ]; then
fi
fi
command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; }
command -v npm >/dev/null 2>&1 && { echo; npm update --location=global; }
command -v rustup >/dev/null 2>&1 && { echo; rustup update; }
command -v nvim >/dev/null 2>&1 && { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
command -v docker >/dev/null 2>&1 && [ "$(docker images | wc -l)" -gt 1 ] \
command -v flatpak >/dev/null 2>&1 \
&& { echo; flatpak update; }
command -v npm >/dev/null 2>&1 \
&& { echo; npm update --location="global"; }
command -v rustup >/dev/null 2>&1 \
&& { echo; rustup update; }
command -v nvim >/dev/null 2>&1 \
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
command -v docker >/dev/null 2>&1 \
&& [ "$(docker images | wc -l)" -gt 1 ] \
&& { echo; docker images \
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
| xargs -l docker pull; }
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
| xargs -l docker pull; }
echo
zsh -ic "antidote update && fg &>/dev/null && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"
zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"