commit: 2c5a54de9f0e9f182ff41c3f0fae5fbab65afe58
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jun 17 01:56:11 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 17 03:00:43 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c5a54de
emerge-webrsync: drop the argv0 variable
It serves no purpose whatsoever.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/emerge-webrsync | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index 31f710145d..f49763ba36 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -624,18 +624,18 @@ do_latest_snapshot() {
# Opportunistically use gentoo-functions for nicer output
functions_script="${EPREFIX}/lib/gentoo/functions.sh"
source "${functions_script}" || {
- echo "${argv0}: Could not source ${functions_script}!" 1>&2
+ echo "$0: Could not source ${functions_script}!" 1>&2
einfo() {
- echo "${argv0##*/}: $*"
+ echo "${0##*/}: $*"
}
ewarn() {
- echo "${argv0##*/}: warning: $*" 1>&2
+ echo "${0##*/}: warning: $*" 1>&2
}
eerror() {
- echo "${argv0##*/}: error: $*" 1>&2
+ echo "${0##*/}: error: $*" 1>&2
}
}
@@ -650,8 +650,6 @@ die() {
exit 1
}
-argv0=$0
-
# Use emerge and portageq from the same directory/prefix as the current script,
# so that we don't have to rely on PATH including the current EPREFIX.
emerge=$(PATH="${BASH_SOURCE[0]%/*}:${PATH}" type -P emerge)