index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-06 02:55:30 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-03-25 12:09:33 -0400 |
commit | d149cc9baf581e234cdf357ce37a604bf73115ea (patch) | |
tree | ce42333902e990055f4bde7750d32dc10f7b7a8f /lib | |
parent | f73c1f172f93b734ec46e861ed1ba8fbb05e65cf (diff) |
-rw-r--r-- | lib/common.sh | 8 |
diff --git a/lib/common.sh b/lib/common.sh index 599be54..689772f 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -159,6 +159,14 @@ slock() { } ## +# usage : lock_close( $fd ) +## +lock_close() { + local fd=$1 + exec {fd}>&- +} + +## # usage: pkgver_equal( $pkgver1, $pkgver2 ) ## pkgver_equal() { |