Created
February 8, 2016 22:05
-
-
Save wendorf/fa2856e2a05e8cd3201b to your computer and use it in GitHub Desktop.
Add this to the root of your USB drive to add your SSH key
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 | |
HOURS=$1 | |
if [ -z $HOURS ]; then | |
echo "Usage: $0 <num hours>" | |
exit 1 | |
fi | |
ssh-add -t ${HOURS}H $(dirname $0)/id_rsa | |
diskutil umount force $(dirname $0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment