mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-11-25 16:47:37 +02:00
gotta-patch-em-all: Allow initial -i runs
[why] When running with --info on a completely empty patch-destination some directories are missing and are never created. They would have been created by the actual patching that is suppressed now. [how] Check and create the needed subdirs. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
40f6990282
commit
1bada00ed6
@ -362,7 +362,8 @@ function copy_license {
|
||||
|
||||
while IFS= read -d $'\0' -r license_file ; do
|
||||
# cp "$license_file" "$dest" # makes archiving multiple harder when we junk the paths for the archive
|
||||
cp "$license_file" "$dest/complete"
|
||||
[[ -d "$dest/complete" ]] || mkdir -p "$dest/complete"
|
||||
cp "$license_file" -t "$dest/complete"
|
||||
done < <(find "$src" -iregex ".*\(licen[c,s]e\|ofl\).*" -type f -print0)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user