1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # Run the gocryptfs process in the background set -eu dir=$(dirname "$0") # This needs user input and cannot run in the background if [[ $* == *--init* ]]; then "$dir/gocryptfs" $* else "$dir/gocryptfs" $* & disown fi