From 36be2027da5ecd41cc17b5abbb39a031118a3dc8 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 14 Nov 2020 15:04:35 +0100 Subject: [PATCH] more tests --- tests-ng/chmod-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests-ng/chmod-install.sh b/tests-ng/chmod-install.sh index 01ed80a..67aa009 100755 --- a/tests-ng/chmod-install.sh +++ b/tests-ng/chmod-install.sh @@ -245,6 +245,16 @@ chmod 600 ${tmpd}/nomode cd ${ddpath} | ${bin} install -c ${cfg} -p p2 -V f_nomode has_rights "${tmpd}/nomode" "600" +## no user confirmation with force +## different mode +echo "different mode" +echo "nomode" > ${tmps}/dotfiles/nomode +chmod 600 ${tmps}/dotfiles/nomode +echo "nomode" > ${tmpd}/nomode +chmod 700 ${tmpd}/nomode +cd ${ddpath} | ${bin} install -c ${cfg} -f -p p2 -V f_nomode +has_rights "${tmpd}/nomode" "600" + ## user confirmation expected ## different mode echo "different mode"