mirror of
https://github.com/samba-team/samba.git
synced 2025-12-10 04:23:50 +03:00
script: Reformat shell scripts
shfmt -f script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
55cd39b92c
commit
22eb76c6d0
@@ -4,16 +4,16 @@
|
||||
branch=$(git branch --contains HEAD | grep '^\* ' | sed -e 's/^\* //')
|
||||
|
||||
if grep -q "^Autobuild\-User($branch): " "$1"; then
|
||||
echo "Already marked as tested for $branch"
|
||||
exit 0
|
||||
echo "Already marked as tested for $branch"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
|
||||
fullname=$(getent passwd $USER | cut -d: -f5 | cut -d',' -f1)
|
||||
mailaddr=$(git config user.email)
|
||||
if test -z "$mailaddr" ; then
|
||||
if test -z "$mailaddr"; then
|
||||
mailaddr="$USER@samba.org"
|
||||
fi
|
||||
cat <<EOF >> "$1"
|
||||
cat <<EOF >>"$1"
|
||||
|
||||
Autobuild-User($branch): $fullname <$mailaddr>
|
||||
Autobuild-Date($branch): $(date) on $(hostname)
|
||||
|
||||
Reference in New Issue
Block a user