[OS-BUILD PATCH] redhat/scripts/rh-dist-git.sh does not take any arguments: fix error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Denys Vlasenko <dvlasenk@xxxxxxxxxx>

redhat/scripts/rh-dist-git.sh does not take any arguments: fix error message

    if [ -z "$RHDISTGIT_BRANCH" ]; then
        echo "$0 <branch> [local clone] [alternate tmp] [alternate dist-git server]" >&2;
        exit 1;

The above is wrong since

    commit e2abc56bcaf0ed772e9f2c828342a5ab8fcd6f1f
    Author: Prarit Bhargava <prarit@xxxxxxxxxx>
    redhat/scripts/rh-dist-git.sh: Use Makefile variables

Replacing it with

    echo "$0: RHDISTGIT_BRANCH is not set" >&2

Signed-off-by: Denys Vlasenko <dvlasenk@xxxxxxxxxx>

diff --git a/redhat/scripts/rh-dist-git.sh b/redhat/scripts/rh-dist-git.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/rh-dist-git.sh
+++ b/redhat/scripts/rh-dist-git.sh
@@ -17,8 +17,8 @@ function upload()
 }
 
 if [ -z "$RHDISTGIT_BRANCH" ]; then
-	echo "$0 <branch> [local clone] [alternate tmp] [alternate dist-git server]" >&2;
-	exit 1;
+	echo "$0: RHDISTGIT_BRANCH is not set" >&2
+	exit 1
 fi
 
 echo "Cloning the repository"

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2753
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux