From b7937e6d860b77229bebd7bbbdd2f0cfba830489 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Jan 24 2022 12:52:11 +0000 Subject: vim-update.sh: use id for getting username --- diff --git a/vim-update.sh b/vim-update.sh index 48ebe85..8f858f4 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -163,7 +163,8 @@ if [ $CHANGES -ne 0 ]; then # if branch isn't rawhide or branch is enabled in bodhi, create the update if newer branch does # not have an update in testing if [ $branch != "rawhide" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then - $debug bodhi updates new --user $(rpmdev-packager) --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} + # uses 'id' value for updates -> your username in OS must match with your username in Fedora accounts + $debug bodhi updates new --user $(id -un) --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} fi else echo "Error when building package for $branch"