pkg-install: fix IFS, print apt update, print deb-make error

pull/931/head
Botspot 4 years ago
parent 1c5625fc45
commit 17a7d788ca

@ -133,7 +133,7 @@ apt_lock_wait
#sudo apt update
{
echo -e "Running \e[4msudo a\e[0mp\e[4mt u\e[0mp\e[4mdate\e[0m..."
output="$(sudo -E apt update 2>&1 | reduceapt | tee /dev/stderr)"
output="$(sudo -E apt update 2>&1 | tee /dev/stderr | reduceapt)"
exitcode=$?
#inform user about autoremovable packages
@ -242,6 +242,7 @@ Package: pi-apps-$appnamehash" > ~/pi-apps-$appnamehash/DEBIAN/control
output="$(dpkg-deb --build ~/pi-apps-$appnamehash 2>&1)"
if [ $? != 0 ];then
echo "$output"
echo "$output" | apt_diagnose
error "pkg-install: failed to create dummy deb pi-apps-$appnamehash"
fi

Loading…
Cancel
Save