diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-09-10 15:20:41 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-09-10 15:20:41 -0400 |
commit | a34e8527a3ea148f8b2c2653e7ad60594d5a0491 (patch) | |
tree | 03bb90b8800250012569401c07548746f6f66b13 | |
parent | 0eb4ad801d540835bc37da64c2a1d25b64502689 (diff) |
Remove global variable.
-rwxr-xr-x | bin/kj_sync_authorized_keys.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kj_sync_authorized_keys.sh b/bin/kj_sync_authorized_keys.sh index 8db3bb2..d0dd463 100755 --- a/bin/kj_sync_authorized_keys.sh +++ b/bin/kj_sync_authorized_keys.sh @@ -26,7 +26,7 @@ if [[ ! -f "${authorized_keys_file}" ]]; then fi add_keys_to_file() { - filename="$1" + local filename="$1" awk \ "/$begin_marker/"' { exit 0 } { print }' \ ${filename} > ${filename}.header |