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