fix: force sane defaults for included files/directories
@@ -44,7 +44,7 @@ printf "## copying from file.include\n"
for i in $(tr ',' '\n' <<< $features); do
if [ -d "$featureDir/$i/file.include" ]; then
printf "### $i:\n"
- tar --owner=0 --group=0 -cC $featureDir/$i/file.include . | tar -xvhC $targetDir 2>&1 | grep -v "^./$" | paste -sd' ' - | indent
+ (umask 0022; tar --mode='a+rwX' -cC $featureDir/$i/file.include . | tar --no-same-owner --no-same-permissions --no-overwrite-dir -xvhC $targetDir 2>&1 | grep -v "^./$" | paste -sd' ' - | indent)
fi
done
