summaryrefslogtreecommitdiffstats
path: root/bin/mount-encryted-volume
diff options
context:
space:
mode:
authorMoux <marlox@ouda.fr>2015-08-02 13:25:50 +0200
committerMoux <marlox@ouda.fr>2015-08-02 13:25:50 +0200
commitf20e35f61d1b08c7e46d9b0a366423f4f84d406e (patch)
tree820aeb7e682b56e4a93529da9d04b6332fd7749a /bin/mount-encryted-volume
parent16382ecee75840ae6466a5dc6f973d367063d26b (diff)
downloadmisc-f20e35f61d1b08c7e46d9b0a366423f4f84d406e.tar.gz
misc-f20e35f61d1b08c7e46d9b0a366423f4f84d406e.tar.bz2
misc-f20e35f61d1b08c7e46d9b0a366423f4f84d406e.zip
Correction des verifications du scritHEADmaster
Diffstat (limited to 'bin/mount-encryted-volume')
-rwxr-xr-xbin/mount-encryted-volume6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mount-encryted-volume b/bin/mount-encryted-volume
index 1a7545e..615c4b6 100755
--- a/bin/mount-encryted-volume
+++ b/bin/mount-encryted-volume
@@ -8,14 +8,14 @@ die () {
}
CONFIG=$HOME/.config/vars
-[ -f "${CONFIG}" ] && die "${CONFIG} is missing"
+[ -f "${CONFIG}" ] || die "${CONFIG} is missing"
source ${CONFIG}
-[ -z "${REMOTE_DIR}" -o -z "${SSHFS_DIR}" -o "${ENCFS_DIR}" ] && die "missing vars"
+[ -z "${REMOTE_DIR}" -o -z "${SSHFS_DIR}" -o -z "${ENCFS_DIR}" ] && die "missing vars"
[ ! -d "$SSHFS_DIR" ] && mkdir "${SSHFS_DIR}"
-[ ! -d "$ENCFS_DIR" ] && mkdir "${SSHFS_DIR}"
+[ ! -d "$ENCFS_DIR" ] && mkdir "${ENCFS_DIR}"
TEMOIN_FILE="$ENCFS_DIR/.temoin.txt"
if [ -e "${TEMOIN_FILE}" ]; then