mirror of
https://github.com/TheLocehiliosan/yadm
synced 2026-03-02 03:49:29 +00:00
Merge pull request #257 from erijo/extension
This commit is contained in:
4
yadm
4
yadm
@@ -177,6 +177,10 @@ function score_file() {
|
||||
label=${field%%.*}
|
||||
value=${field#*.}
|
||||
[ "$field" = "$label" ] && value="" # when .value is omitted
|
||||
# extension isn't a condition and doesn't affect the score
|
||||
if [[ "$label" =~ ^(e|extension)$ ]]; then
|
||||
continue
|
||||
fi
|
||||
score=$((score + 1000))
|
||||
# default condition
|
||||
if [[ "$label" =~ ^(default)$ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user