Skip to content

Commit 4424b9b

Browse files
committed
Hide output of failed mutex
1 parent 7a169ed commit 4424b9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapper2borg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare -A snapper_lv_snapshots snapper_mounted
1212

1313
# MUTEX Do not remove
1414
lockdir="${BORG_BACKUP_PATH}/.snapper2borg.lock"
15-
if ! mkdir "$lockdir"; then
15+
if ! mkdir "$lockdir" >/dev/null 2>&1; then
1616
echo "${0##*/} cannot run more than once, or remove the lockdir at: $lockdir"
1717
exit 1
1818
fi

0 commit comments

Comments
 (0)