From 9f1b65498f33cc591fc9a54e5bee99d1b0d0c753 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 23 Sep 2011 13:56:29 +0000 Subject: [PATCH] Remove unnecessary scary trailing-slash check for EGIT_REPO_URI. If the slash is not there, ${EGIT_REPO_URI%/} will simply do nothing. --- eclass/git-2.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass index cd0c0a71d679..afa19ad40115 100644 --- a/eclass/git-2.eclass +++ b/eclass/git-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.15 2011/09/23 13:55:47 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.16 2011/09/23 13:56:29 mgorny Exp $ # @ECLASS: git-2.eclass # @MAINTAINER: @@ -251,7 +251,7 @@ git-2_prepare_storedir() { # calculate the proper store dir for data # If user didn't specify the EGIT_DIR, we check if he did specify # the EGIT_PROJECT or get the folder name from EGIT_REPO_URI. - [[ -z ${EGIT_REPO_URI##*/} ]] && EGIT_REPO_URI="${EGIT_REPO_URI%/}" + EGIT_REPO_URI=${EGIT_REPO_URI%/} if [[ -z ${EGIT_DIR} ]]; then if [[ -n ${EGIT_PROJECT} ]]; then clone_dir=${EGIT_PROJECT} -- 2.26.2