Last active
July 24, 2019 22:02
-
-
Save diegoscl/8346d2c8db6bae1551c4c350c2662db7 to your computer and use it in GitHub Desktop.
[macOS] Mount a SMB share
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
| #!/bin/bash | |
| # Use applescript to auto-mount a SMB share in /Volumes and save password in Keychain. | |
| # Source: https://apple.stackexchange.com/a/303595 | |
| osascript <<EOF | |
| mount volume "smb://USER@SERVER/SHARE" | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment