Compare commits

...

2 Commits

2 changed files with 12 additions and 4 deletions

View File

@ -282,6 +282,6 @@ while read -r _borg_id _date_weekday _date_date _date_time _time_stamp_borg_bac
echo -e " ${_date_weekday} ${_date_date} ${_date_time} [ \033[33m${_borg_id}\033[m ]"
done < <(borg list ${BORG_URL})
done < <(borg list ${BORG_URL} 2> /dev/null)
clean_up 0

View File

@ -268,9 +268,11 @@ export BORG_RSH
BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
export BORG_RELOCATED_REPO_ACCESS_IS_OK
declare -i index=0
for _dir in $(ls /mnt/borg-fuse-mount) ; do
echononl "Unmount fuse filesystem mounted at '${BORG_FUSE_MOUNT_DIR}/${_dir}'.."
echo " Unmount fuse filesystem mounted at"
echo -e -n " '${BORG_FUSE_MOUNT_DIR}/${_dir}'.."
#borg umount ${BORG_FUSE_MOUNT_DIR} >> "${log_file}" 2>&1
@ -286,7 +288,13 @@ for _dir in $(ls /mnt/borg-fuse-mount) ; do
#echo ${_dir}
#umount ${BORG_FUSE_MOUNT_DIR}/${_dir}
rmdir ${BORG_FUSE_MOUNT_DIR}/${_dir}
((index++))
done
if [[ $index -lt 1 ]] ; then
warn "No borgfs mounted."
fi
clean_up 0