Fix error message formatting + lack of pointer to log

This commit is contained in:
Alexandre Aubin 2024-01-01 19:35:58 +01:00
parent 74a74e6606
commit 6a7d6cdf39

View file

@ -198,7 +198,7 @@ function _apt() {
show_apt_progress $percent "$title" "$message";
done \
&& printf "$resetline $bold${green}Done$normal" \
|| { printf "$resetline $bold${green}'apt-get $* failed$normal\n\n"; return 1; }
|| { printf "$resetline $bold${red}'apt-get $*' failed.$normal Please check $YUNOHOST_LOG for debugging\n\n"; return 1; }
else
# Why we need pipefail : https://stackoverflow.com/a/6872163
apt-get $* 2>&1 | tee -a $YUNOHOST_LOG || return 1