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