summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-08 16:48:56 +1000
committerAllan McRae <allan@archlinux.org>2011-06-08 16:48:56 +1000
commit361b6a9403c9b87521ec3e1df64b6fe95fe52d7d (patch)
treefcc7eb9e6aaa6b0df068d9a210f88ceeb146a3d7 /scripts
parent80b024d56ae61902025983470e93893d76109ac4 (diff)
downloadpacman-361b6a9403c9b87521ec3e1df64b6fe95fe52d7d.tar.xz
pacman-key: add vim modeline and fix whitespace issues
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pacman-key.sh.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 80f8bc7c..20ec20fa 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -87,12 +87,12 @@ There is NO WARRANTY, to the extent permitted by law.\n")"
# 'key', 'equal sign' and 'value' can be surrounded by random whitespace
# Usage: get_from "$file" "$key" # returns the value for the first matching key in the file
get_from() {
- while read key _ value; do
- if [[ $key = $2 ]]; then
- echo "$value"
- break
- fi
- done < "$1"
+ while read key _ value; do
+ if [[ $key = $2 ]]; then
+ echo "$value"
+ break
+ fi
+ done < "$1"
}
reload_keyring() {
@@ -328,3 +328,5 @@ case "${command}" in
error "$(gettext "Unknown command:") $command"
usage; exit 1 ;;
esac
+
+# vim: set ts=2 sw=2 noet: