summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/etc-update3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 17a008bf6..b51b1b670 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -60,7 +60,8 @@ function scan() {
rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")
rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::")
for mpath in ${CONFIG_PROTECT_MASK}; do
- mpath="${ROOT}${path}"
+ mpath="${ROOT}${mpath}"
+ mpath=$(echo ${mpath/\/\///})
if [[ "${rpath}" == "${mpath}"* ]]; then
mv ${rpath}/${rfile} ${rpath}/${rfile:10}
break