1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

[PATCH] cdsymlinks.sh: trivial fix, the variable is initialized to '', not 0

This commit is contained in:
md@Linux.IT 2005-02-06 01:00:04 +01:00 committed by Greg KH
parent c7a84d7556
commit 0c50db890e

View File

@ -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