Avoid error message when /dev/wedges doesn't exist yet.

This commit is contained in:
mlelstv 2016-08-15 12:54:40 +00:00
parent cc08080f03
commit 43aac176e6
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: 02-wedgenames,v 1.3 2015/03/01 14:21:17 mlelstv Exp $
# $NetBSD: 02-wedgenames,v 1.4 2016/08/15 12:54:40 mlelstv Exp $
#
# Try to maintain symlinks to wedge devices
#
@ -12,7 +12,7 @@ devices=$@
wedgedir=/dev/wedges
remove_wedge() {
find $wedgedir -print \
test -d $wedgedir && find $wedgedir -print \
| sed -e 's# #\\ #g' \
| while read w; do
t=$(readlink "$w")