Skip to content

Commit

Permalink
fix: checkfile set even if tuple is not a expression (fixes #51)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Sep 28, 2022
1 parent 1975f75 commit 7b9586a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#"?"}")
Expand Down

0 comments on commit 7b9586a

Please sign in to comment.