Commit 1e6d8f5a authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Ensure that 'comm' input is sorted.

The requirements file needs to be sorted in order to be compared
parent 693fb0c5
......@@ -226,7 +226,7 @@ function install_requirements() {
local -a toinstall
local def="${required_defs[$defindex]}"
local depfile="${environment}/${def}.deps"
toinstall=($(comm -12 <(sed 's/[~@].*$//' "$reqfile") "$depfile"))
toinstall=($(comm -12 <(sed 's/[~@].*$//' "$reqfile" | sort) "$depfile"))
debug " Checking $defindex - $def: ${toinstall[*]}"
local -a promotedef
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment