Use temporary directories for mounting #102
Reference in New Issue
Block a user
Delete Branch "matthijskooijman/temp-mount-dir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This creates a temporary directory for src and dst mounts, rather than hardcoding
/mnt/cloneand/mnt/clone-src. This allows running the script twice in parallel, without conflicts.To prevent littering tons of directories around, automatic cleanup of these directories is added (which has the added advantage of also unmounting and cleaning up when the script is somehow interrupted or fails in an unexpected way).
This also changes the interface to the
rpi-clone-setupscript slightly, since that also used to hardcode this directory name.See commit messages for some more details.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.