1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-eventscripts: Remove non-posix -v option to mkdir

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Sep  6 11:11:02 UTC 2019 on sn-devel-184
This commit is contained in:
Amitay Isaacs 2019-07-31 12:13:52 +10:00 committed by Martin Schwenke
parent 4a7fc97daf
commit 3bd68261ec
2 changed files with 2 additions and 12 deletions

View File

@ -29,6 +29,6 @@ init)
esac
d=$(dirname "$recovery_lock")
mkdir -vp "$d"
mkdir -p "$d"
;;
esac

View File

@ -12,17 +12,7 @@ dir=$(dirname "$CTDB_RECOVERY_LOCK")
required_result 1 ""
unit_test test -d "$dir"
# FreeBSD mkdir -v just prints the filename. Filter the rest of the
# message from other platforms, including any exotic quotes around the
# filename.
result_filter ()
{
sed \
-e 's|^\(mkdir: created directory \)[[:punct:]]||' \
-e 's|[[:punct:]]$||'
}
ok "$dir"
ok_null
simple_test
# Ensure directory exists after