Skip to content

Commit

Permalink
is_specfile: Avoid syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Feb 23, 2020
1 parent 1ee6c89 commit 94d5eae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/libexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ unixtime() {
}

is_specfile() {
# This &&: workaround for #21 in contrib/bugs.sh
eval "case \${1%%:*} in ($SHELLSPEC_PATTERN) true ;; (*) false ; esac &&:"
shellspec_match "${1%%:*}" "$SHELLSPEC_PATTERN"
}

found_specfile() {
Expand Down

0 comments on commit 94d5eae

Please sign in to comment.