mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-17 04:14:56 +00:00
force the linking
This commit is contained in:
parent
aaf664e2e5
commit
3a87322823
@ -76,14 +76,14 @@ cached()
|
|||||||
tempfile1="${name1%/*}/new-${name1##*/}"
|
tempfile1="${name1%/*}/new-${name1##*/}"
|
||||||
[ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
|
[ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
|
||||||
if [ -f "$name1" ] && { [ -z "$outfile2" ] || [ -f "$name2" ]; }; then
|
if [ -f "$name1" ] && { [ -z "$outfile2" ] || [ -f "$name2" ]; }; then
|
||||||
case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"; }
|
case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln -f "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"; }
|
||||||
[ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"; }; }
|
[ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln -f "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"; }; }
|
||||||
conv=true
|
conv=true
|
||||||
elif "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
|
elif "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
|
||||||
mv "$tempfile1" "$name1"
|
mv "$tempfile1" "$name1"
|
||||||
[ -z "$outfile2" ] || mv "$tempfile2" "$name2"
|
[ -z "$outfile2" ] || mv "$tempfile2" "$name2"
|
||||||
case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"; }
|
case "$outfile1" in */*) mkdir -p "${outfile1%/*}"; esac && { ln -f "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"; }
|
||||||
[ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"; }; }
|
[ -z "$outfile2" ] || { case "$outfile2" in */*) mkdir -p "${outfile2%/*}"; esac && { ln -f "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"; }; }
|
||||||
conv=true
|
conv=true
|
||||||
else
|
else
|
||||||
rm -f "$tempfile1"
|
rm -f "$tempfile1"
|
||||||
|
Loading…
Reference in New Issue
Block a user