Lines 60-66
Link Here
|
60 |
rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::") |
60 |
rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::") |
61 |
rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::") |
61 |
rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::") |
62 |
for mpath in ${CONFIG_PROTECT_MASK}; do |
62 |
for mpath in ${CONFIG_PROTECT_MASK}; do |
63 |
mpath="${ROOT}${path}" |
63 |
mpath="${ROOT}${mpath}" |
|
|
64 |
mpath=$(echo ${mpath/\/\///}) |
64 |
if [[ "${rpath}" == "${mpath}"* ]]; then |
65 |
if [[ "${rpath}" == "${mpath}"* ]]; then |
65 |
mv ${rpath}/${rfile} ${rpath}/${rfile:10} |
66 |
mv ${rpath}/${rfile} ${rpath}/${rfile:10} |
66 |
break |
67 |
break |