From a3793d868cb0d637cfdd9bdb9b4801faee80e41a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 19 Jun 2020 10:40:21 +0200 Subject: [PATCH] Bugfixing snippets/tpl.100.clear_repos.sh --- snippets/tpl.100.clear_repos.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snippets/tpl.100.clear_repos.sh b/snippets/tpl.100.clear_repos.sh index f20c15e..a638d2c 100644 --- a/snippets/tpl.100.clear_repos.sh +++ b/snippets/tpl.100.clear_repos.sh @@ -12,7 +12,6 @@ clear_all_repo_files() { local repo_dir="/etc/yum.repos.d" local old_dir="${repo_dir}/.old" local repo_file= - local bname= mkdir -pv "${old_dir}" @@ -20,8 +19,7 @@ clear_all_repo_files() { if [[ ! -f "${repo_file}" ]] ; then continue fi - bname=$( echo "${repo_file}" | basename ) - echo " - ${bname}" + echo " - $( basename "${repo_file}" )" cp -pv "${repo_file}" "${old_dir}" cp -v /dev/null "${repo_file}" done -- 2.39.5