billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 335 forks source link

Use a symbolic link instead of copy to /usr/local/sbin/.. #165

Open A-Fromell-Private opened 1 year ago

A-Fromell-Private commented 1 year ago

I propose to use symbolic links for the cloned files instead of copy them to /usr/local/sbin Ex. sudo ln -s $(pwd)/rpi-clone /usr/local/sbin/rpi-clone sudo ln -s $(pwd)/rpi-clone-setup /usr/local/sbin/rpi-clone-setup

The major advantage is: if you update to the latest release by: sudo git fetch https://github.com/billw2/rpi-clone.git

If/when updates are made to rpi-clone or rpi-clone-setup the links in /usr/local/sbin are then pointing to the new updated files. Eg. no need to copy the files..

Best regards, Anders Fromell