提交 7821e8ad authored 作者: Travis Cross's avatar Travis Cross

getsounds.sh: avoid copying sound files

上级 0e4fa9e2
...@@ -22,17 +22,17 @@ echo -n "#" ...@@ -22,17 +22,17 @@ echo -n "#"
pwd pwd
echo "# $0 $1 $2" echo "# $0 $1 $2"
if [ ! -f $tarfile ] ; then if [ -n "$FS_SOUNDS_DIR" ] ; then
if [ -f $FS_SOUNDS_DIR/$tarfile ]; then [ -d $FS_SOUNDS_DIR ] || mkdir -p $FS_SOUNDS_DIR
cp -l $FS_SOUNDS_DIR/$tarfile . \ DIR=$FS_SOUNDS_DIR
|| cp $FS_SOUNDS_DIR/$tarfile . fi
else
$DOWNLOAD_CMD $base$tarfile if [ ! -f $DIR/$tarfile ] ; then
if [ ! -f $tarfile ] ; then (cd $DIR && $DOWNLOAD_CMD $base$tarfile)
echo cannot find $tarfile if [ ! -f $DIR/$tarfile ] ; then
exit 1 echo cannot find $tarfile
fi exit 1
fi fi
fi fi
if [ ! -z $install ] ; then if [ ! -z $install ] ; then
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论