1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 20:14:04 +02:00

dsv (search): quote file name, so that we can also look up names with spaces

This commit is contained in:
Werner Almesberger 2010-11-30 18:56:33 -03:00
parent 92cb58023d
commit e928d82b79

View File

@ -134,7 +134,7 @@ search()
while true; do
if [ -d $DSV_DIR ]; then
if [ -r "$DSV_DIR/dsv-$1" ]; then
file=`cat $DSV_DIR/dsv-$1`
file=`cat "$DSV_DIR/dsv-$1"`
if [ ! -r "$DSV_DIR/$file" ]; then
echo "$1 -> $file: does not exist" 2>&1
exit 1