Skip to content
Snippets Groups Projects
Commit de51bac0 authored by nimrod's avatar nimrod
Browse files

- Declare local variables.

parent 29ee0b8a
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ usage () { ...@@ -51,6 +51,7 @@ usage () {
} }
init () { init () {
local cn
export cn="$(basename $PWD)" export cn="$(basename $PWD)"
mkdir -p certs keys mkdir -p certs keys
if [ -e openssl.cnf ] if [ -e openssl.cnf ]
...@@ -98,6 +99,7 @@ init () { ...@@ -98,6 +99,7 @@ init () {
} }
sign_key () { sign_key () {
local csr cn
if [ $# -lt 1 ] || [ "$1" = "" ] if [ $# -lt 1 ] || [ "$1" = "" ]
then then
echo "No host specified." echo "No host specified."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment