311 |
read my_input |
read my_input |
312 |
case ${my_input} in |
case ${my_input} in |
313 |
1) echo "Replacing ${ofile} with ${mfile}" |
1) echo "Replacing ${ofile} with ${mfile}" |
314 |
chmod --reference=${ofile} ${mfile} |
# busybox does not support --reference |
315 |
|
if ! chmod --reference=${ofile} ${mfile} > /dev/null 2&>1 |
316 |
|
then |
317 |
|
chmod $(stat -c %a ${ofile}) ${mfile} |
318 |
|
fi |
319 |
mv ${mv_opts} ${mfile} ${ofile} |
mv ${mv_opts} ${mfile} ${ofile} |
320 |
rm ${rm_opts} ${file} |
rm ${rm_opts} ${file} |
321 |
return 255 |
return 255 |