mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 09:51:50 +00:00
Fix version_string.sh: check for .git directory was too early
This commit is contained in:
parent
711364ad8d
commit
702d22de99
@ -17,11 +17,6 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
if [ ! -e .git ]; then
|
||||
echo "UNKNOWN-VERSION"
|
||||
exit
|
||||
fi
|
||||
|
||||
usage() {
|
||||
echo "Usage: ${0##*/} [options]"'
|
||||
|
||||
@ -86,6 +81,11 @@ done
|
||||
|
||||
cd "$repo_path" >/dev/null
|
||||
|
||||
if [ ! -d .git ]; then
|
||||
echo "UNKNOWN-VERSION"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
get_author_label() {
|
||||
# See git-commit-tree(1) for the semantics of working out the author's email
|
||||
# address when committing.
|
||||
|
Loading…
x
Reference in New Issue
Block a user