[137630] users/chunyang/svn-ls-files/svn-ls-files
chunyang at macports.org
chunyang at macports.org
Mon Jun 15 09:01:40 PDT 2015
Revision: 137630
https://trac.macports.org/changeset/137630
Author: chunyang at macports.org
Date: 2015-06-15 09:01:40 -0700 (Mon, 15 Jun 2015)
Log Message:
-----------
users/chunyang: svn-ls-files: Fix last commit
Modified Paths:
--------------
users/chunyang/svn-ls-files/svn-ls-files
Modified: users/chunyang/svn-ls-files/svn-ls-files
===================================================================
--- users/chunyang/svn-ls-files/svn-ls-files 2015-06-15 16:01:02 UTC (rev 137629)
+++ users/chunyang/svn-ls-files/svn-ls-files 2015-06-15 16:01:40 UTC (rev 137630)
@@ -9,15 +9,12 @@
#
function usage {
- echo "Usage - $0 [PATH]"
+ echo "Usage - $(basename $0) [PATH]"
}
if [ $# -ne 0 ]; then
- if cd "$1" &> /dev/null; then
- ;
- else
- usage
- exit 1
+ if ! cd "$1" &> /dev/null; then
+ usage ; exit 1
fi
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150615/340d8174/attachment.html>
More information about the macports-changes
mailing list