mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
offline_signing: automatically fix ownership of output dir
This commit is contained in:
parent
b3cb2e0608
commit
3ed15a8762
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user