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