mvadkert / rpms / beakerlib

Forked from rpms/beakerlib 6 years ago
Clone
Blob Blame History Raw
From 3ea77a1e2b8af613e8dc57b8783b562a268d16d9 Mon Sep 17 00:00:00 2001
From: Dalibor Pospisil <dapospis@redhat.com>
Date: Fri, 20 Jun 2014 09:53:27 +0200
Subject: [PATCH 08/14] use local variable instead of parameter

---
 src/infrastructure.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/infrastructure.sh b/src/infrastructure.sh
index 9c1dfbb..b821f10 100644
--- a/src/infrastructure.sh
+++ b/src/infrastructure.sh
@@ -478,10 +478,10 @@ __INTERNAL_FILEBACKUP_NAMESPACE="rlFileBackupNamespace"
 
 __INTERNAL_FILEBACKUP_SET_PATH_CLEAN() {
   local path="$1"
-  local path_encoded="$( rlHash -a hex "$1" )"
+  local path_encoded="$( rlHash -a hex "$path" )"
 
   local namespace="$2"
-  local namespace_encoded="$( rlHash -a hex "$2" )"
+  local namespace_encoded="$( rlHash -a hex "$namespace" )"
 
   rlLogDebug "rlFileBackup: Setting up the cleaning lists"
   rlLogDebug "rlFileBackup: Path [$path] Encoded [$path_encoded]"
@@ -499,7 +499,7 @@ __INTERNAL_FILEBACKUP_SET_PATH_CLEAN() {
 
 __INTERNAL_FILEBACKUP_CLEAN_PATHS() {
   local namespace="$1"
-  local namespace_encoded="$( rlHash -a hex "$1" )"
+  local namespace_encoded="$( rlHash -a hex "$namespace" )"
 
   rlLogDebug "rlFileRestore: Fetching clean-up lists for namespace: [$namespace] (encoded as [$namespace_encoded])"
 
-- 
1.9.3