1
0
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:
Andreas Schneider
2022-02-21 14:02:15 +01:00
committed by Andrew Bartlett
parent 55cd39b92c
commit 22eb76c6d0
8 changed files with 103 additions and 79 deletions

View File

@@ -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)