s4
changeset 1028:6e24f1ecf13e
Workaround for GNU system
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 22 Dec 2023 20:01:32 +0900 |
parents | f389a311a8d4 |
children | 8c7d168d27ed |
files | s4-funcs.sh s4-start.sh |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Wed Dec 06 20:13:42 2023 +0900 1.2 +++ b/s4-funcs.sh Fri Dec 22 20:01:32 2023 +0900 1.3 @@ -481,6 +481,9 @@ 1.4 ${S4WORLDGRPS:+-D_S4WORLDGRPS_="$S4WORLDGRPS"} \ 1.5 ${S4WORLDS:+-D_S4WORLDS_="$S4WORLDS"} "$@" 1.6 } 1.7 +if ! type gdate && date --version | grep -q GNU; then 1.8 + gdate() date "$@" 1.9 +fi >/dev/null 2>&1 1.10 ismember() { 1.11 # $1=user, $2=group 1.12 #err ismem: "select user from grp_mem where gname=$(sqlquote $2) and user='$1';"