]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools/tarsource.sh: support FRR as a git submodule
authorDavid Lamparter <equinox@diac24.net>
Fri, 18 Jan 2019 14:14:46 +0000 (15:14 +0100)
committerDavid Lamparter <equinox@diac24.net>
Fri, 18 Jan 2019 14:14:46 +0000 (15:14 +0100)
a git submodule will have .git as a file instead of a directory... which
breaks tarsource.sh.

Signed-off-by: David Lamparter <equinox@diac24.net>
tools/tarsource.sh

index 110558da0dbb16ecb775838bde35722dd56c3a79..2e7ed4411db5ea65634c491c1f6f7189f3e20b66 100755 (executable)
@@ -133,7 +133,7 @@ onexit() {
 trap onexit EXIT
 tmpdir="`mktemp -d -t frrtar.XXXXXX`"
 
-if test -d "$src/.git"; then
+if test -e "$src/.git"; then
        commit="`git -C \"$src\" rev-parse \"${commit:-HEAD}\"`"
 
        if $dirty; then