Skip to content

Commit

Permalink
chg: [installer] If shasum is not found, install it (#4634)
Browse files Browse the repository at this point in the history
chg: [installer] If shasum is not found, install it
  • Loading branch information
SteveClement committed May 15, 2019
2 parents 13d55f5 + 262577b commit 8a51109
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
4 changes: 4 additions & 0 deletions INSTALL/INSTALL.sh
Expand Up @@ -269,6 +269,10 @@ checkFlavour () {
}

checkInstaller () {
# 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 install libdigest-sha-perl -qyy
fi
# SHAsums to be computed, not the -- notatiation is for ease of use with rhash
SHA_SUMS="--sha1 --sha256 --sha384 --sha512"
for sum in $(echo ${SHA_SUMS} |sed 's/--sha//g'); do
Expand Down
6 changes: 3 additions & 3 deletions INSTALL/INSTALL.sh.sfv
@@ -1,5 +1,5 @@
; Generated by RHash v1.3.8 on 2019-05-15 at 12:59.37
; Generated by RHash v1.3.8 on 2019-05-15 at 14:33.51
; Written by Kravchenko Aleksey (Akademgorodok) - http://rhash.sf.net/
;
; 93591 12:59.37 2019-05-15 INSTALL.sh
INSTALL.sh 9A019993B3EAE738733B0F6BA171FC43D0E32832 6691B7B74D312F4E61D9EF30375F6E26FE0987E0469667CE7B7B26B77BF3BE9F D4F9C9487DD4777DE8F5B9780806B58459E33B848E133D274125877FBEC85035423326F7F06F2E650A3CC8BC8CA15E0A FF9AFF7DE44EFC9E62F8F8BF62AB2E0999E1C6AEDD042FFA7299D81E870B41A47AE9E706422BD4A8194F591EFF9F17DE498585A554FCEE7B3ADD87B9D83DEEF5
; 93790 14:33.51 2019-05-15 INSTALL.sh
INSTALL.sh DB6D3E754A83F26C5DCFDE255506B02B5514C7E3 01F94621212B55242039449BE6AF29F778402ABA5A62018D9EB1D6096363F38A 5CC3BD2E9034A3CA7B1E0452CFBCBA20410A2723B822EE31E79FEC860E9E29488E5EDBB04A6F81446A3EA407C7B0EA2C 474C789EF24667ECFBD01E88E0ACD73F58EB7C40936E979FC3A391E75F6713C67316BDDA30427D59FA72215574DAD4B93280AAAEC3002C5E6019BED50D48A1BE
2 changes: 1 addition & 1 deletion INSTALL/INSTALL.sh.sha1
@@ -1 +1 @@
9a019993b3eae738733b0f6ba171fc43d0e32832 INSTALL.sh
db6d3e754a83f26c5dcfde255506b02b5514c7e3 INSTALL.sh
2 changes: 1 addition & 1 deletion INSTALL/INSTALL.sh.sha256
@@ -1 +1 @@
6691b7b74d312f4e61d9ef30375f6e26fe0987e0469667ce7b7b26b77bf3be9f INSTALL.sh
01f94621212b55242039449be6af29f778402aba5a62018d9eb1d6096363f38a INSTALL.sh
2 changes: 1 addition & 1 deletion INSTALL/INSTALL.sh.sha384
@@ -1 +1 @@
d4f9c9487dd4777de8f5b9780806b58459e33b848e133d274125877fbec85035423326f7f06f2e650a3cc8bc8ca15e0a INSTALL.sh
5cc3bd2e9034a3ca7b1e0452cfbcba20410a2723b822ee31e79fec860e9e29488e5edbb04a6f81446a3ea407c7b0ea2c INSTALL.sh
2 changes: 1 addition & 1 deletion INSTALL/INSTALL.sh.sha512
@@ -1 +1 @@
ff9aff7de44efc9e62f8f8bf62ab2e0999e1c6aedd042ffa7299d81e870b41a47ae9e706422bd4a8194f591eff9f17de498585a554fcee7b3add87b9d83deef5 INSTALL.sh
474c789ef24667ecfbd01e88e0acd73f58eb7c40936e979fc3a391e75f6713c67316bdda30427d59fa72215574dad4b93280aaaec3002c5e6019bed50d48a1be INSTALL.sh
4 changes: 4 additions & 0 deletions docs/generic/supportFunctions.md
Expand Up @@ -117,6 +117,10 @@ checkFlavour () {
}

checkInstaller () {
# 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 install libdigest-sha-perl -qyy
fi
# SHAsums to be computed, not the -- notatiation is for ease of use with rhash
SHA_SUMS="--sha1 --sha256 --sha384 --sha512"
for sum in $(echo ${SHA_SUMS} |sed 's/--sha//g'); do
Expand Down

0 comments on commit 8a51109

Please sign in to comment.