libupload: Fixing memset call
[profile/ivi/syslinux.git] / gen-id.sh
index 1b3e108..301ea4e 100755 (executable)
--- a/gen-id.sh
+++ b/gen-id.sh
@@ -8,9 +8,10 @@
 #
 
 ver="$1"
-tim="$1"
+tim="$2"
+top=`dirname "$0"`
 
-if test -n "$GIT_DIR" -o -d ../.git -o -f ../.git; then
+if test -n "$GIT_DIR" -o -d "$top"/.git -o -f "$top"/.git; then
     id="$(git describe)"
     if test -n "$id"; then
        if test x"$(echo "$id" | cut -d- -f1)" = xsyslinux; then