mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-15 19:40:06 +00:00
getsounds.sh: avoid copying sound files
This commit is contained in:
parent
0e4fa9e23b
commit
7821e8ad9d
@ -22,18 +22,18 @@ 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)
|
||||||
|
if [ ! -f $DIR/$tarfile ] ; then
|
||||||
echo cannot find $tarfile
|
echo cannot find $tarfile
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -z $install ] ; then
|
if [ ! -z $install ] ; then
|
||||||
test -d $install || mkdir $install
|
test -d $install || mkdir $install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user