Skip to content

Commit

Permalink
fix: Correct test for cmp and ignore which version
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Jul 8, 2024
1 parent 1d8d629 commit a49f0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galacticusInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ buildEnvironment[$iPackage]=""
iPackage=$(expr $iPackage + 1)
package[$iPackage]="cmp"
packageAtLevel[$iPackage]=0
testPresence[$iPackage]="hash wget"
testPresence[$iPackage]="hash cmp"
getVersion[$iPackage]="versionString=(\`cmp -v\`); echo \${versionString[3]}"
minVersion[$iPackage]="0.0"
maxVersion[$iPackage]="9.99"
Expand Down Expand Up @@ -451,7 +451,7 @@ iPackage=$(expr $iPackage + 1)
package[$iPackage]="which"
packageAtLevel[$iPackage]=0
testPresence[$iPackage]="hash which"
getVersion[$iPackage]="versionString=(\`which -V | sed -r s/\"v([0-9\\.]+).*\"/\"\\1\"/\`); echo \${versionString[2]}"
getVersion[$iPackage]="echo 1.0.0"
minVersion[$iPackage]="0.0"
maxVersion[$iPackage]="9.99"
yumInstall[$iPackage]="which"
Expand Down

0 comments on commit a49f0c2

Please sign in to comment.