Skip to content

Instantly share code, notes, and snippets.

@rfjakob
Created October 10, 2016 21:12
Show Gist options
  • Select an option

  • Save rfjakob/d11d4a1085516fe1d70c3b7ce447d556 to your computer and use it in GitHub Desktop.

Select an option

Save rfjakob/d11d4a1085516fe1d70c3b7ce447d556 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -u
if [[ ! -f "$1/gocryptfs.conf" ]]; then
exit 0
fi
if mountpoint "$2" > /dev/null; then
exit 0
fi
exec gocryptfs "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment