Commit 95667670 authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh-authorize: Tried to remove bash-isms.

Rev: src/lsh-authorize:1.2
parent 07d44b5f
#! /bin/sh
function usage () {
usage () {
echo Usage: $0 key-file
}
......@@ -29,7 +29,7 @@ if [ $# = 0 ] ; then
exit 0
fi
function create-dir () {
create_dir () {
if mkdir $1 2>/dev/null; then
echo Created $1
chmod $2 $1 || exit 1
......@@ -37,8 +37,8 @@ function create-dir () {
}
# Create directories
create-dir ~/.lsh 0700
create-dir ~/.lsh/authorized_keys_sha1 0700
create_dir ~/.lsh 0700
create_dir ~/.lsh/authorized_keys_sha1 0700
SEXP_CONV=`PATH=$PATH:. \type -path sexp_conv`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment