Projects
Eulaceura:Factory
copy-jdk-configs
_service:obs_scm:Ongoing-fixes-on-rhbz#2100617....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:Ongoing-fixes-on-rhbz#2100617.patch of Package copy-jdk-configs
From 3589b183d18d0ed839b947b973ce53b4d73836eb Mon Sep 17 00:00:00 2001 From: Jiri Vanek <jvanek@redhat.com> Date: Mon, 3 Oct 2022 18:53:30 +0200 Subject: [PATCH] Ongoing fixes on rhbz#2100617 - properly elaborat eonl on one file $x instead of $@ - proeprly cleanup config dir - do not check switch for existence but jsut use it --- copy_jdk_configs_fixFiles.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git copy_jdk_configs_fixFiles.sh copy_jdk_configs_fixFiles.sh index 0e4ce9f..2e5d603 100755 --- copy_jdk_configs_fixFiles.sh +++ copy_jdk_configs_fixFiles.sh @@ -37,17 +37,23 @@ mvDebug() { } rmDebug() { + local switch="" for x in "$@" ; do - if isJavaConfig "$x" ; then - cmdvDebug rm "$@" + if [[ $x == -* ]] ; then + switch="$switch $x" + elif isJavaConfig "$x" ; then + cmdvDebug rm $switch "$x" fi done } rmdirDebug() { + local switch="" for x in "$@" ; do - if isJavaConfig "$x" ; then - cmdvDebug rmdir "$@" + if [[ $x == -* ]] ; then + switch="$switch $x" + elif isJavaConfig "$x" ; then + cmdvDebug rmdir $switch "$x" fi done } @@ -55,7 +61,11 @@ rmdirDebug() { #we should be pretty strict about removing once used (even "used" [with fail]) config file, as it may corrupt another installation clean(){ debug "cleanup: removing $config" - rmDebug -rf $config + if [ "x$debug" == "xtrue" ] ; then + rm -rf $config -v + else + rm -rf $config 1>/dev/null 2>&1 + fi } if [ "x" == "x$config" ] ; then
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2