utils/lock.sh: remove redundant 'local'

This commit is contained in:
Martin Afanasjew 2016-06-29 22:38:42 +02:00
parent b1811f2ef3
commit 1c27a75ca4

View File

@ -29,7 +29,7 @@ EOS
_create_lock() { _create_lock() {
local lock_fd="$1" local lock_fd="$1"
local ruby="/usr/bin/ruby" local ruby="/usr/bin/ruby"
[[ -x "$ruby" ]] || local ruby="$(which ruby 2>/dev/null)" [[ -x "$ruby" ]] || ruby="$(which ruby 2>/dev/null)"
if [[ -n "$ruby" ]] if [[ -n "$ruby" ]]
then then