public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-packager] epel10.2: Move fkinit user default check
@ 2026-06-25 13:20 Cristian Le
  0 siblings, 0 replies; only message in thread
From: Cristian Le @ 2026-06-25 13:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fedora-packager
            Branch : epel10.2
            Commit : c6eed73137a93167267b0226a7293edd982dd436
            Author : Cristian Le <git@lecris.dev>
            Date   : 2025-12-08T22:05:46+00:00
            Stats  : +5/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-packager/c/c6eed73137a93167267b0226a7293edd982dd436?branch=epel10.2

            Log:
            Move fkinit user default check

Otherwise the check for .fedora.upn does not apply

---
diff --git a/fkinit b/fkinit
index 7df469b..537edc0 100755
--- a/fkinit
+++ b/fkinit
@@ -28,8 +28,12 @@ begins_with_short_option()
 }
 
 # THE DEFAULTS INITIALIZATION - OPTIONALS
-_arg_user="$USER"
 _arg_staging="off"
+if [ -f "$HOME/.fedora.upn" ]; then
+	_arg_user=$(<"$HOME/.fedora.upn")
+else
+	_arg_user="$USER"
+fi
 
 
 print_help()
@@ -97,10 +101,6 @@ set -e
 armorcache=$(mktemp)
 trap finalize EXIT
 
-if [ -f "$HOME/.fedora.upn" ] && [ -z "$_arg_user" ]; then
-	$_arg_user=$(<"$HOME/.fedora.upn")
-fi
-
 if [ "$_arg_staging" == "on" ]; then
     domain=STG.FEDORAPROJECT.ORG
 else

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-25 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 13:20 [rpms/fedora-packager] epel10.2: Move fkinit user default check Cristian Le

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox