commit b8d0e9de8ad99a308f95a617b1303dd93ce863af
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2014-04-20T17:23:41Z |
| subject | Bug fix |
commit b8d0e9de8ad99a308f95a617b1303dd93ce863af
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2014-04-20T17:23:41Z
Bug fix
---
bash/cronbackup/backup.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bash/cronbackup/backup.sh b/bash/cronbackup/backup.sh
index ea6bd05..d6b3481 100644
--- a/bash/cronbackup/backup.sh
+++ b/bash/cronbackup/backup.sh
@@ -4,9 +4,9 @@ source ./config.sh
# IO Redirection
exec > $LOGFILE
-
exec 2> $ERRLOG
+
if [[ -n $BMOUNT ]] && ! grep -qs $BMOUNT /proc/mounts; then
echo Mounting $BMOUNT ...
mount $BMOUNT
@@ -85,6 +85,6 @@ while read line; do
# echo --\> $line
done < backup_list
-if [[ "$MOUNTED" -eq 0 ]]; then
+if [[ "$MOUNTED" = 0 ]]; then
umount $BMOUNT
fi