index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-01-03 15:01:43 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-01-03 15:01:43 -0500 |
commit | 7b7fed0f700fd84b356c364d1eb8b19414dbddb6 (patch) | |
tree | beea5c7ec6f2b952ca1efa99594bed2a423862c4 /lib/common.sh | |
parent | 233a9340e08b326803c1038f61cb528b2a9e86c0 (diff) |
-rw-r--r-- | lib/common.sh | 6 |
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")" |