From c1bb8dc5e668439d6f717286937fbf4d134b98f8 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Jul 11 2022 15:05:32 +0000 Subject: vim-update.sh: bodhi client version depends on machine where we run the script, not on branch in git --- diff --git a/vim-update.sh b/vim-update.sh index 45c4e52..1390474 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -28,6 +28,11 @@ if [ "x$1" == "x--force" ]; then force=1 fi +if [ "x$(grep -o VERSION_ID=35 /etc/os-release)" == "xVERSION_ID=35" ] +then + BODHI_USER="--user $(id -un)" +fi + DATE=`date +"%a %b %d %Y"` $debug fedpkg switch-branch "${branches[@]: $branches_index: 1}" @@ -119,11 +124,6 @@ if [ $CHANGES -ne 0 ]; then for branch in "${branches[@]:(1)}"; do - if [ "x$branch" == "xf35" ] - then - BODHI_USER="--user $(id -un)" - fi - # switch to branch $debug fedpkg switch-branch $branch