offline_signing: automatically fix ownership of output dir

This commit is contained in:
Benjamin Gilbert 2017-09-05 16:38:16 -07:00
parent b3cb2e0608
commit 3ed15a8762

View File

@ -40,6 +40,11 @@ if [[ -z "${BASEDIR}" ]]; then
fi
shift
if [[ -d "${BASEDIR}" && ! -O "${BASEDIR}" ]]; then
echo "Fixing ownership of ${BASEDIR}..."
sudo chown -R "${USER}" "${BASEDIR}"
fi
# Walk argument pairs.
while [[ $# > 0 ]]; do
c="$1"