|
|
|
@ -28,6 +28,8 @@ elif [ -z "$app" ];then
|
|
|
|
|
error "No app name specified to pkg-install!"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
LANG=C LC_ALL=C
|
|
|
|
|
|
|
|
|
|
source "${DIRECTORY}/api"
|
|
|
|
|
apt_lock_wait
|
|
|
|
|
|
|
|
|
@ -76,6 +78,15 @@ Press Ctrl+C in 5 seconds to cancel...\e[39m"
|
|
|
|
|
sudo apt update 2>&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p' | while read key; do if ! [[ ${keys[*]} =~ "$key" ]]; then sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys "$key"; keys+=("$key"); fi; done
|
|
|
|
|
echo -e '\e[93mDone. Please try installing the same app again.\e[39m'
|
|
|
|
|
fi
|
|
|
|
|
if echo "$errors" | grep -q 'Could not resolve';then
|
|
|
|
|
echo -e "\e[93m
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
APT reported an unresolvable repository.
|
|
|
|
|
|
|
|
|
|
Please check your Internet connection and try again.
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
\e[39m"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|