[Assorted-commits] SF.net SVN: assorted: [820] shell-tools/trunk/src/bash-commons/common.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-05-14 22:57:28
|
Revision: 820 http://assorted.svn.sourceforge.net/assorted/?rev=820&view=rev Author: yangzhang Date: 2008-05-14 15:57:35 -0700 (Wed, 14 May 2008) Log Message: ----------- added check_private() Modified Paths: -------------- shell-tools/trunk/src/bash-commons/common.bash Modified: shell-tools/trunk/src/bash-commons/common.bash =================================================================== --- shell-tools/trunk/src/bash-commons/common.bash 2008-05-14 22:57:12 UTC (rev 819) +++ shell-tools/trunk/src/bash-commons/common.bash 2008-05-14 22:57:35 UTC (rev 820) @@ -434,6 +434,12 @@ PYTHONPATH="$pkgdir:$PYTHONPATH" ./setup.py install --prefix "$prefix" } +# Check that a file exists and has private permissions. +check_private() { + local path="$@" + (( "$( find "$path" -perm u=rw | wc -l )" == 1 )) +} + #if ! is_declared indent ; then # noindent #else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |