X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=bin%2Fhammock;h=2e6fd32e8d9b25b914bd7a33391370d06d76d089;hb=fb4e461bad4c2423f7c7377d06d0e18fe7b45553;hp=884420365412cb7c48cd7e6670a4e1fccdbe07c8;hpb=89f10d958bacf3f13160bbba670195bc0eb414f3;p=nethome.git diff --git a/bin/hammock b/bin/hammock index 8844203..2e6fd32 100755 --- a/bin/hammock +++ b/bin/hammock @@ -258,7 +258,7 @@ for my $file (@file) { newdir "$dir/file.d","mayexist"; (my $base=$file)=~s{^.*/}{}; my $d="$dir/file.d/$base"; - link $file,$d or die "link $file $d: $!"; + link $file,$d or spawn "cp -p '$file' '$d'"; newdir "$resultid/file.d","mayexist"; link $d,"$resultid/file.d/$base" or warn "link $file $resultid/file.d/$base: $!"; }