Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 7541bcc

Browse files
committed
Fix for #1209, packages.sh failures on Ubuntu Xenial
1. Fix so we do apt update for all Ubuntu variants 2. Add -e option to script, to exit on any failure, rather than ignoring errors
1 parent 4b1e90a commit 7541bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/installation/packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -x
1+
#!/bin/bash -ex
22

33
## =================================================================
44
## PELOTON PACKAGE INSTALLATION
@@ -104,14 +104,14 @@ if [ "$DISTRO" = "UBUNTU" ]; then
104104
echo -e "\n# Added by Peloton 'packages.sh' script on $(date)\ndeb $LLVM_PKG_URL $LLVM_PKG_TARGET" | sudo tee -a /etc/apt/sources.list > /dev/null
105105
fi
106106
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
107-
sudo apt-get update -qq
108107
CMAKE_NAME="cmake3"
109108
FORCE_Y="--force-yes"
110109
else
111110
CMAKE_NAME="cmake"
112111
FORCE_Y=""
113112
fi
114113

114+
sudo apt-get update -qq
115115
FORCE_Y=""
116116
PKG_CMAKE="cmake"
117117
PKG_LLVM="llvm-3.7"

0 commit comments

Comments
 (0)