Use sudo to move applytest results

We're wanting to more properly set permissions on the ansible puppet
role manifest dir. This ends up setting mode 0755 with ownership of
root:root on the dir. As a result sudo is necessary to move these
contents later.

Change-Id: I6b6aa79e8e8b63f4665679ab183a8551f0dd521e
This commit is contained in:
Clark Boylan 2020-11-10 09:47:21 -08:00
parent b05a98440a
commit 8d932bc706

View File

@ -20,7 +20,7 @@ if [[ ! -d applytest ]] ; then
mkdir ~/applytest
fi
trap "mv ~/applytest applytest" EXIT
trap "sudo mv ~/applytest applytest" EXIT
# Split the class defs.
csplit -sf ~/applytest/puppetapplytest $PUPPET_MANIFEST '/^}$/' {*}