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:
parent
4a7fc97daf
commit
3bd68261ec
@ -29,6 +29,6 @@ init)
|
||||
esac
|
||||
|
||||
d=$(dirname "$recovery_lock")
|
||||
mkdir -vp "$d"
|
||||
mkdir -p "$d"
|
||||
;;
|
||||
esac
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user