yodate: skip non-numbers at the beginning of the file
This commit is contained in:
parent
90f9999306
commit
30c0e1b868
@ -217,7 +217,7 @@ in {
|
|||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
t() { git rev-parse --show-toplevel; }
|
t() { git rev-parse --show-toplevel; }
|
||||||
yodate() { date --date=@"''${1:0:10}" +"%F %T"; }
|
yodate() { date --date=@$(echo "$1" | sed -E 's/^[^0-9]*(..........).*/\1/') +"%F %T"; }
|
||||||
source ${./gg.sh}
|
source ${./gg.sh}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user