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

View file

@ -22,6 +22,12 @@ fi
echo "Patching all fonts with ext -> $ext" echo "Patching all fonts with ext -> $ext"
echo "Using the following arguments for font-patcher $fp_args" 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 exit 0