create destdir in mencfs
This commit is contained in:
parent
916d8a6a45
commit
b9038f9fa5
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ mencfs () {
|
|||
[ -z ${PKEY+x} ] && { EXIT; return 3; }
|
||||
[ -z ${ENCDIR+x} ] && { EXIT; return 4; }
|
||||
[ -z ${DESTDIR+x} ] && DESTDIR="$(dirname $ENCDIR)/$(basename $ENCDIR| tr '[:lower:]' '[:upper:]'| sed -e 's/^\.//')"
|
||||
[ -d "$DESTDIR" ] || mkdir -p "$DESTDIR"
|
||||
$PASS "${PKEY}" 1>/dev/null 2>&1 || { logerror "entry $PKEY does not exist in passwordsotre"; return 5; }
|
||||
local ENCFS_PASSWORD=$($PASS "${PKEY}" | head -n1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue