From c5e46c3ecf60b6ed36cb31ef9951db1a96a9c7ba Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sep 01 2022 10:39:03 +0000 Subject: version-update: allow overriding the default FAS username --- diff --git a/version-update.sh b/version-update.sh index 2c30166..0f45f2d 100755 --- a/version-update.sh +++ b/version-update.sh @@ -9,8 +9,8 @@ bug="$2" args="$3" ts="$(date '+%a %b %d %Y') $(git config user.name) <$(git config user.email)>" -kinit -R zbyszek@FEDORAPROJECT.ORG - +kinit -R "${FAS:-zbyszek}@FEDORAPROJECT.ORG" + sed -i -r "s/(^Version: *) .+/\1 $version/" *.spec spectool -g *.spec : >sources @@ -34,7 +34,7 @@ fi git add *.spec git commit -a -m "Version $version (#$bug)" -if [ "$args" = "-u" ]; then +if [ "$args" = "-u" ]; then git push fedpkg build fi