Kaynağa Gözat

Replace 'test' invocation by 'test -n', this should be safer.

Originally committed as revision 15434 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun 17 yıl önce
ebeveyn
işleme
e73db71899
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      version.sh

+ 1 - 1
version.sh

@@ -15,7 +15,7 @@ fi
 # no version number found
 # no version number found
 test $revision || revision=UNKNOWN
 test $revision || revision=UNKNOWN
 
 
-test "$3" && revision=$revision-$3
+test -n "$3" && revision=$revision-$3
 
 
 NEW_REVISION="#define FFMPEG_VERSION \"$revision\""
 NEW_REVISION="#define FFMPEG_VERSION \"$revision\""
 OLD_REVISION=`cat version.h 2> /dev/null`
 OLD_REVISION=`cat version.h 2> /dev/null`