fix: [installer] Fix a bug where the installer fails if apt update has never been run

pull/5840/head
Steve Clement 2020-04-30 13:27:19 +09:00
parent d2ed0c8956
commit baff30ffd1
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
1 changed files with 9 additions and 8 deletions

View File

@ -229,6 +229,7 @@ checkInstaller () {
else
# TODO: Implement $FLAVOUR checks and install depending on the platform we are on
if [[ $(which shasum > /dev/null 2>&1 ; echo $?) != 0 ]]; then
sudo apt update
sudo apt install libdigest-sha-perl -qyy
fi
# SHAsums to be computed, not the -- notatiation is for ease of use with rhash