diff --git a/setup/install.sh b/setup/install.sh index 3df21f256..73d99515c 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -59,8 +59,14 @@ function install_powershell() { sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list' # Update the list of products apt-get update - wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6_amd64.deb - dpkg -i libicu57_57.1-6_amd64.deb + # Install libucu57 as stated in https://web.archive.org/web/20190501222044/https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#installation---kali + wget http://http.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u2_amd64.deb + if sha256sum libicu57_57.1-6+deb9u2_amd64.deb | grep '^c2dee82e7ae8fa4dc8fd0d9ad5a28cd41598cfccf5d0a71d0cd6a6bb4ac71f25' >/dev/null; then + dpkg -i libicu57_57.1-6+deb9u2_amd64.deb + else + echo "Failed to install libicu57" + exit 1 + fi # Install PowerShell apt-get install -y powershell fi @@ -149,11 +155,11 @@ tar -xvf ../data/misc/$Xar_version.tar.gz #Installing bomutils git clone https://github.com/hogliux/bomutils.git (cd bomutils && make) -(cd bomutils && make install) +(cd bomutils && sudo make install) # NIT: This fails on OSX. Leaving it only on Linux instances. if uname | grep -q "Linux"; then - (cd bomutils && make install) + (cd bomutils && sudo make install) fi chmod 755 bomutils/build/bin/mkbom && sudo cp bomutils/build/bin/mkbom /usr/local/bin/.