summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-01-03 15:01:43 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2018-01-03 15:01:43 -0500
commit7b7fed0f700fd84b356c364d1eb8b19414dbddb6 (patch)
treebeea5c7ec6f2b952ca1efa99594bed2a423862c4
parent233a9340e08b326803c1038f61cb528b2a9e86c0 (diff)
downloaddevtools-7b7fed0f700fd84b356c364d1eb8b19414dbddb6.tar.xz
i18n: Try to avoid confusing xgettext
-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")"