[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 3/4] Avoid script backup files



From:  <otavio@debian.org>

While we were hacking live-package we had problems of backup files
being load and causing trouble with our code. We changed the code to
use find and avoid backup files solving the problem.
---

 src/main.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main.sh b/src/main.sh
index 05c8b1b..8c1ca80 100755
--- a/src/main.sh
+++ b/src/main.sh
@@ -36,7 +36,7 @@ CODENAME_TESTING="etch"
 CODENAME_UNSTABLE="sid"
 
 # Source sub scripts
-for SCRIPT in "${BASE}"/scripts/*
+for SCRIPT in $(find ${BASE}/scripts/ -not -name '*~' -and -type f)
 do
 	. "${SCRIPT}"
 done


Reply to: