fix: maintain user permission for generated patch directory

This commit is contained in:
Daylin Morgan 2022-12-06 10:46:06 -06:00
parent 5a6113df5f
commit 39f7abfdc4
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,12 @@ fi
echo "Patching all fonts with ext -> $ext"
echo "Using the following arguments for font-patcher $fp_args"
docker run --rm -v "$(pwd)/MonoLisa/$ext:/in" -v "$(pwd)/patched/$ext:/out" nerdfonts/patcher $fp_args
docker run \
--rm \
-v "$(pwd)/MonoLisa/$ext:/in" \
-v "$(pwd)/patched/$ext:/out" \
-u "$(id -u):$(id -g)" \
nerdfonts/patcher \
$fp_arg
exit 0