From: Diego Biurrun Date: Fri, 26 Sep 2008 21:39:22 +0000 (+0000) Subject: Replace 'test' invocation by 'test -n', this should be safer. X-Git-Tag: v0.5~2396 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/e73db71899821a5dcdaa3137186aa9b28800bd76?ds=sidebyside Replace 'test' invocation by 'test -n', this should be safer. Originally committed as revision 15434 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/version.sh b/version.sh index 5f97f6d..69a10ea 100755 --- a/version.sh +++ b/version.sh @@ -15,7 +15,7 @@ fi # no version number found test $revision || revision=UNKNOWN -test "$3" && revision=$revision-$3 +test -n "$3" && revision=$revision-$3 NEW_REVISION="#define FFMPEG_VERSION \"$revision\"" OLD_REVISION=`cat version.h 2> /dev/null`