summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJason St. John <jstjohn@purdue.edu>2013-11-08 06:44:40 +0100
committerAllan McRae <allan@archlinux.org>2013-11-15 02:02:27 +0100
commit230bd5c2fd11f6256e1ab16c2e5997a8d8228461 (patch)
treeab33d063641bb3f8f3998caa3aea4db92d8989b7 /contrib
parentb7b3f9c5e7903272bef32792ab28615f434d3ec8 (diff)
downloadpacman-230bd5c2fd11f6256e1ab16c2e5997a8d8228461.tar.gz
pacman-230bd5c2fd11f6256e1ab16c2e5997a8d8228461.tar.xz
Fix whitespace and other formatting issues
This commit: -- replaces space-based indents with tabs per the coding standards -- removes extraneous whitespace (e.g. extra spaces between function args) -- adds missing braces for a one-line if statement Signed-off-by: Jason St. John <jstjohn@purdue.edu>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/paccache.sh.in4
-rw-r--r--contrib/rankmirrors.sh.in2
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in
index 2bbe7266..6b8df25e 100644
--- a/contrib/paccache.sh.in
+++ b/contrib/paccache.sh.in
@@ -298,8 +298,8 @@ pkgcount=${#candidates[*]}
# copy the list, merging in any found sigs
for cand in "${candidates[@]}"; do
- candtemp+=("$cand")
- [[ -f $cand.sig ]] && candtemp+=("$cand.sig")
+ candtemp+=("$cand")
+ [[ -f $cand.sig ]] && candtemp+=("$cand.sig")
done
candidates=("${candtemp[@]}")
unset candtemp
diff --git a/contrib/rankmirrors.sh.in b/contrib/rankmirrors.sh.in
index 5555edf9..82bf9ae0 100644
--- a/contrib/rankmirrors.sh.in
+++ b/contrib/rankmirrors.sh.in
@@ -184,7 +184,7 @@ elif [[ $FILE ]]; then
fi
timesarray=()
-for line in "${linearray[@]}"; do
+for line in "${linearray[@]}"; do
if [[ $line =~ ^[[:space:]]*# ]]; then
[[ $TIMESONLY ]] || echo $line
elif [[ $line =~ ^[[:space:]]*Server ]]; then