Changeset 8186f16 for git-version.sh


Ignore:
Timestamp:
04/06/2021 10:28:27 PM (8 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, trunk, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
6cc8775, 8d2cfcb
Parents:
6b505da
Message:

Quiet git status check. Make sed more readable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version.sh

    r6b505da r8186f16  
    11#!/bin/sh
    22
    3 if ! git status; then
     3if ! git status > /dev/null; then
    44        # Either it's not a git repository, or git is unavaliable.
    55        # Just workaround.
     
    2020month=$(date --date "$commit_date" "+%B")
    2121month_digit=$(date --date "$commit_date" "+%m")
    22 day=$(date --date "$commit_date" "+%d" | sed 's@^0@@')
     22day=$(date --date "$commit_date" "+%d" | sed 's/^0//')
    2323
    2424case $day in
Note: See TracChangeset for help on using the changeset viewer.