Code: Select all
pushd /target
cp -auv /source/. .
rm -v $(grep -v -F -x -f <(find /source -type f -printf '%P\n') <(find . -type f -printf '%P\n'))
find . -empty -type d -delete
popd
Code: Select all
pushd /target
cp -auv /source/. .
rm -v $(grep -v -F -x -f <(find /source -type f -printf '%P\n') <(find . -type f -printf '%P\n'))
find . -empty -type d -delete
popd
Changing the top line of linurxc from #!/bin/sh to #!/bin/bash didn't seem to break anything, and no new warnings/errors on the boot console. So I'll go with that, as the the sh shell doesn't have pushd/popd for example, and in general I think bash is more modern?ncmprhnsbl wrote: ↑27 Nov 2022, 05:40presumably, changing linuxrc to #!/bin/bash might offer more features
I am no core developer so I cannot answer the question nor explain the reasons for why it is done so.