Fix tabs/spaces
This commit is contained in:
parent
2bb96014cf
commit
14c8df8101
1 changed files with 14 additions and 14 deletions
28
backup-usb
28
backup-usb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue