mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Fix getrev.sh in case there is no svn ;)
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@164 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
a22c01cb27
commit
476b5affba
1 changed files with 8 additions and 1 deletions
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
svn info . | grep '^Revision' | awk '{print $2}'
|
||||
|
||||
REV=`svn info . 2> /dev/null | grep '^Revision' | awk '{print $2}'`
|
||||
if [ "x$REV" = "x" ] ; then
|
||||
echo "0"
|
||||
else
|
||||
echo $REV
|
||||
fi
|
||||
exit 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue