fix: checkfile set even if tuple is not a expression (fixes #51)
This commit is contained in:
parent
1975f75d02
commit
7b9586ad30
|
@ -377,7 +377,9 @@ function check_wanted_programs() {
|
|||
local checkfile
|
||||
for tuple in "$@"; do
|
||||
program="${tuple%%=*}"
|
||||
checkfile="${tuple##*=}"
|
||||
checkfile=""
|
||||
[[ "$tuple" == *=* ]] \
|
||||
checkfile="${tuple##*=}"
|
||||
if ! has_program "${program#"?"}" "$checkfile"; then
|
||||
if [[ "$program" == "?"* ]]; then
|
||||
missing_wanted+=("${program#"?"}")
|
||||
|
|
Loading…
Reference in New Issue