Fix tabs/spaces

This commit is contained in:
Benjamin Renard 2017-04-12 11:05:14 +02:00
parent 2bb96014cf
commit 14c8df8101

View file

@ -31,8 +31,8 @@ DEVICE=""
while getopts ":dcl:u:h" opt
do
case "$opt" in
d)
case "$opt" in
d)
DEBUG=1
;;
c)
@ -165,18 +165,18 @@ function backup() {
debug INFO "Montage de BackupPC FS..."
$BACKUPPCFS_PATH $BACKUPPCFS_MNT
RES=$?
if [ $RES -ne 0 ]
then
debug ERREUR "Problème durant le montage de BackupPC FS. Code retour : $RES"
umount $BACKUPPCFS_MNT
umount $LUKS_DM_PATH
cryptsetup close $LUKS_DM_NAME
debug HALT
exit 1
else
debug INFO "Fait."
fi
RES=$?
if [ $RES -ne 0 ]
then
debug ERREUR "Problème durant le montage de BackupPC FS. Code retour : $RES"
umount $BACKUPPCFS_MNT
umount $LUKS_DM_PATH
cryptsetup close $LUKS_DM_NAME
debug HALT
exit 1
else
debug INFO "Fait."
fi
sleep 2