Fix typo in Readme file
[geeqie.git] / version.sh
index 94912c7..f6e1c5a 100755 (executable)
@@ -3,7 +3,7 @@
 ## @file
 ## @brief Generate the Geeqie version number
 ##
-## This script is called from configure.ac
+## This script is called from meson.build
 ##
 ## If the current branch is "master" a revison number is generated of the form:  
 ## <n.m>+git<date of last commit>-<last commit hash>  
@@ -18,7 +18,7 @@
 ## Geeqie <n.m[.p]>
 ##
 
-if [ -d .git ]
+if [ -d .git ] && [ -x "$(command -v git)" ]
 then
        branch=$(git rev-parse --abbrev-ref HEAD)