mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Fix error message formatting + lack of pointer to log
This commit is contained in:
parent
74a74e6606
commit
6a7d6cdf39
1 changed files with 1 additions and 1 deletions
2
bookworm
2
bookworm
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue