This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Modified from: https://akrabat.com/prevent-an-external-drive-from-auto-mounting-on-macos/ | |
| # Prevent external drives from auto-mounting on macOS | |
| FSTAB=/etc/fstab | |
| # Add a volume as not auto-mounted to the /etc/fstab file | |
| # by its identifier. Also pass in the volume name to add a |