Skip to content

Commit 8929cbf

Browse files
committed
Mention apt-get update for Ubuntu
If system package installation fails, stack should not be installed.
1 parent c7864f6 commit 8929cbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etc/scripts/get-stack.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ apt_install_dependencies() {
128128
do_ubuntu_install() {
129129

130130
install_dependencies() {
131-
apt_install_dependencies g++ gcc libc6-dev libffi-dev libgmp-dev make xz-utils zlib1g-dev git gnupg
131+
if ! apt_install_dependencies g++ gcc libc6-dev libffi-dev libgmp-dev make xz-utils zlib1g-dev git gnupg; then
132+
die "Dependencies could not be installed. Please run 'apt-get update' and try again."
133+
fi
132134
}
133135

134136
if is_arm ; then

0 commit comments

Comments
 (0)