Changeset 8186f16


Ignore:
Timestamp:
04/06/2021 10:28:27 PM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
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.