summaryrefslogtreecommitdiff
path: root/gocryptfs.sh
blob: 689708c9eb5d4e421f6b939e6ed31db019d8e201 (plain)
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