From: Frank Brehm Date: Fri, 19 Jun 2020 08:40:21 +0000 (+0200) Subject: Bugfixing snippets/tpl.100.clear_repos.sh X-Git-Tag: 2.1.2^2~9^2~31^2~17^2~14 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=a3793d868cb0d637cfdd9bdb9b4801faee80e41a;p=pixelpark%2Fcreate-vmware-tpl.git Bugfixing snippets/tpl.100.clear_repos.sh --- 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