summaryrefslogtreecommitdiffstats
path: root/bin/pbfields
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pbfields')
-rwxr-xr-xbin/pbfields13
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/pbfields b/bin/pbfields
index a27948a..b7b3934 100755
--- a/bin/pbfields
+++ b/bin/pbfields
@@ -9,13 +9,14 @@ BEGIN {
" url *source *noextract *md5sums *sha512sums" \
" _dir"
max = split(fieldstr, fields)
- for(i=1; i<=max; i++) {
- if(sub(/^[*]/, "", fields[i])){
- arrfield[fields[i]] = 1
- }else if(sub(/^_/, "", fields[i])){
- cfield[fields[i]] = 1
+ for(i = 1; i <= max; i++){
+ f = fields[i]
+ if(sub(/^[*]/, "", f)){
+ arrfield[f] = 1
+ }else if(sub(/^_/, "", f)){
+ cfield[f] = 1
}else{
- strfield[fields[i]] = 1
+ strfield[f] = 1
}
}