X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fcdsymlinks.sh;h=b2702e0063c3323119846862d396ad9cee23b2b9;hb=d4b611430083674ee1d3aa19b87c9894ac3e39d8;hp=e99be2e544d836d7dd0882cf4a2afa368240454c;hpb=79db6912cf8827bf4293d2d15b84cc9633dd7d4e;p=elogind.git diff --git a/extras/cdsymlinks.sh b/extras/cdsymlinks.sh index e99be2e54..b2702e006 100644 --- a/extras/cdsymlinks.sh +++ b/extras/cdsymlinks.sh @@ -159,7 +159,7 @@ output () { COUNT=$(($COUNT+1)) done # If the target dev ($1) is the current dev ($i), we output its name. - if test $(($NUMBERED_LINKS)) -ne 0 || test "$COUNT" -eq 0; then + if test $(($NUMBERED_LINKS)) -ne 0 || test "$COUNT" = ''; then test "$i" = "$1" && echo -n " $2$COUNT" fi # If the link isn't in our "existing links" list, add it and increment