From bb60fa749da7f725f2f000a90ea317ad4b1383d2 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 1 Feb 2010 10:09:56 -0800 Subject: [PATCH] ovs-pki: Avoid using local variables, which are non-POSIX. Reported-by: Srini Seetharaman --- utilities/ovs-pki.in | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index 39d5782e..ea959fdd 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (c) 2008, 2009 Nicira Networks, Inc. +# Copyright (c) 2008, 2009, 2010 Nicira Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -348,10 +348,9 @@ make_tmpdir() { } fingerprint() { - local file=$1 - local name=${1-$2} - local date=$(date -r $file) - local fingerprint + file=$1 + name=${1-$2} + date=$(date -r $file) if grep -q -e '-BEGIN CERTIFICATE-' "$file"; then fingerprint=$(openssl x509 -noout -in "$file" -fingerprint | sed 's/SHA1 Fingerprint=//' | tr -d ':') @@ -472,7 +471,7 @@ sign_request() { } glob() { - local files=$(echo $1) + files=$(echo $1) if test "$files" != "$1"; then echo "$files" fi -- 2.30.2