summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 56929a7..ac42b00 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -112,7 +112,8 @@ die() {
##
# usage : lock( $fd, $file, $message, [ $message_arguments... ] )
##
-lock() {
+lock() # newline here to avoid confusing xgettext
+{
# Only reopen the FD if it wasn't handed to us
if ! [[ "/dev/fd/$1" -ef "$2" ]]; then
mkdir -p -- "$(dirname -- "$2")"
@@ -129,7 +130,8 @@ lock() {
##
# usage : slock( $fd, $file, $message, [ $message_arguments... ] )
##
-slock() {
+slock() # newline here to avoid confusing xgettext
+{
# Only reopen the FD if it wasn't handed to us
if ! [[ "/dev/fd/$1" -ef "$2" ]]; then
mkdir -p -- "$(dirname -- "$2")"