mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-16 21:19:43 +02:00
dsv (search): quote file name, so that we can also look up names with spaces
This commit is contained in:
parent
92cb58023d
commit
e928d82b79
2
dsv/dsv
2
dsv/dsv
@ -134,7 +134,7 @@ search()
|
|||||||
while true; do
|
while true; do
|
||||||
if [ -d $DSV_DIR ]; then
|
if [ -d $DSV_DIR ]; then
|
||||||
if [ -r "$DSV_DIR/dsv-$1" ]; 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
|
if [ ! -r "$DSV_DIR/$file" ]; then
|
||||||
echo "$1 -> $file: does not exist" 2>&1
|
echo "$1 -> $file: does not exist" 2>&1
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user