mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-17 04:14:56 +00:00
remove a sleep 10 debug command
This commit is contained in:
parent
86d79beedb
commit
555bd2f563
@ -37,13 +37,9 @@ cached()
|
|||||||
tempfile1="${name1%/*}/new-${name1##*/}"
|
tempfile1="${name1%/*}/new-${name1##*/}"
|
||||||
[ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
|
[ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
|
||||||
if [ -f "$name1" ]; then
|
if [ -f "$name1" ]; then
|
||||||
echo "$name1 already there, caching"
|
|
||||||
sleep 10
|
|
||||||
ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
|
ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
|
||||||
[ -z "$outfile2" ] || ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"
|
[ -z "$outfile2" ] || ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"
|
||||||
elif "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
|
elif "$method" "$infile1" "$infile2" "$tempfile1" "$tempfile2" "$@"; then
|
||||||
echo "$name1 not there, making"
|
|
||||||
sleep 10
|
|
||||||
mv "$tempfile1" "$name1"
|
mv "$tempfile1" "$name1"
|
||||||
[ -z "$outfile2" ] || mv "$tempfile2" "$name2"
|
[ -z "$outfile2" ] || mv "$tempfile2" "$name2"
|
||||||
ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
|
ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
|
||||||
|
Loading…
Reference in New Issue
Block a user