Skip to content

Instantly share code, notes, and snippets.

@andrew-carroll
Created August 4, 2015 05:53
Show Gist options
  • Save andrew-carroll/e370d5be9ea32e52196f to your computer and use it in GitHub Desktop.
Save andrew-carroll/e370d5be9ea32e52196f to your computer and use it in GitHub Desktop.
Wrapper for encfs that allows relative paths.
#!/usr/bin/env bash
if [[ $# -ne 2 ]]; then
echo "Usage: $0 ./encrypted/dir ./visible/dir"
fi
/usr/bin/encfs $(readlink -f $1) $(readlink -f $2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment